Skip to main content

Units, collections and brands

For whoever configures the catalogue. Read The catalogue first — this is the order to do things in, the settings each screen reads, and the decisions that are hard to undo.

The order to set it up in​

  1. Units — check the shipped list, resolve anything the migration reported, add the units you sell in.

The unit master, grouped by class, each naming its reference unit 2. Unit classes — only if you sell in something the five shipped classes do not cover. 3. Categories — what each product is, with its tax category, regulated category and, if a retailer or a buyer asks for them, its standard codes, each as high up the tree of categories as it is true (see Categories). 4. Collection trees and collections — where products are shown: the storefront menu first, then any tree a report or a promotion needs. 5. Brands — with their manufacturer where you know it. 6. Tags — as merchandising needs them, and never before. 7. Items — give them a category, their collections, a brand and a base unit.

Permissions​

PermissionGranted by default toWhat it lets somebody do
uom.readManager, Sales, Warehouse, Accounting, ReadOnlySee the units and try a conversion
uom.manageManagerCreate units and classes, and set how a quantity rounds
collection.readManager, Sales, Warehouse, Accounting, ReadOnlySee the tree and the tags
collection.manageManagerCreate, edit and delete collection trees; create, move, rename, retire and delete collections; create, edit, retire and delete tags
brand.readManager, Sales, Warehouse, Accounting, ReadOnlySee the brands
brand.manageManagerCreate and change brands, their manufacturer and their advertised floor
collection.mergeManagerMerge two collections, or two tags, that are the same thing
brand.mergeManagerMerge two brands that are the same brand
translation.writeManager, SalesGive a collection's, a tag's or a brand's name in another language (see Names in other languages)

Putting an item in a collection and tagging it are item edits, so they take item.manage: ticking its collections, Add to collection and Remove from collection on the item list, and choosing an item's tags. Tagging an item used to take collection.manage, which put a manager's permission on an everyday product edit. Counting what a bulk collection change reaches before OK is item.manage too: it previews a change only that permission makes, and it shows which price and tax rules name which collections.

The catalogue health panel needs three reads — item.read, collection.read and brand.read — because the report names items, collections and brands together and the service checks all three. Every seeded role that reads the catalogue holds the three. A custom role missing one sees no panel (not an error), and the tour's step about the panel is shown to it without a spotlight. Each fix on the panel then needs its own permission: collection.merge or brand.merge to merge, collection.manage or brand.manage to retire, item.manage to file. A fix the person cannot make is not offered.

Translating a name is not editing the catalogue. translation.write is the platform's translation permission, not the catalogue's, and it is checked with the record's own read permission (collection.read for a collection or a tag, brand.read for a brand) and nothing else. So the seeded Sales role, which reads the catalogue and manages none of it, translates; and a manager role somebody has copied without translation.write edits and does not translate. The Translations buttons, their tip and their tour step follow the same rule.

Three pairs rather than folding it all into item.manage, and the reason is blast radius. Changing one item is one item. Changing a unit's rounding precision re-rounds every quantity converted through it; moving a collection subtree moves three thousand items into a different reporting line; changing a brand's minimum advertised price moves the floor under every line of that brand. None of those is item maintenance, and a company that lets a merchandiser add a tag should not thereby let them redefine what a case is.

Units of measure​

What ships​

Five classes, each with a reference unit every other unit in it is stated against:

ClassReferenceAlso shipped
CountEADZ, PR, and the packaging units CS, BX, PLT, CTN
WeightGKG, MG, LB, OZ
VolumeMLL, GAL, FLOZ
LengthMMCM, M, IN, FT
TimeHRMIN, DAY

The references are the units the system stores in — grams, millilitres, millimetres — so an item's recorded weight needs no conversion to be read back.

Every factor is a definition, not a measurement: an inch is 25.4 mm and an avoirdupois ounce is 28.349523125 g by statute. The full precision is kept, because a rate of 55c an ounce over a distributor's year is not a place to round the unit itself.

Physical units and packaging units​

A physical unit has a fixed size: a kilogram is a thousand grams for every product, for every customer, for ever.

A packaging unit has none. A case is twelve of one product and six of another, so CS ships with no size and each item declares its own on the Packaging tab. A universal case-to-each factor is how a system quietly ships the wrong quantity of goods, so there is deliberately no way to set one.

Packaging levels on an item​

A packaging unit's size is declared per item, as a level of that item: a box of ten, a case of ten boxes, a pallet of forty cases. A level sits on the base unit or inside another level, and says how many of the level below it holds; its size in base units is derived, and every level above it and its conversion follow a change. There is nothing to configure: no setting, flag or rule reads the tree, and it is always on with the Inventory app.

Things worth knowing when you set a catalogue up:

  • One level per unit per item. A second case size is a second unit in the master (CS12, CS24), because every quantity entered "in cases" has to mean one number.
  • A level something depends on cannot be deleted: one another level sits in, one a barcode scans as, or the item's sales or purchase unit.
  • The pallet pattern (TI, HI) is kept on the pallet level, and the item's own TI and HI are kept in step with it; when TI, HI and the number of cases are all given they must agree.
  • Barcodes are bound to a level, and a GTIN-14 starting 1 to 8 must carry the product's own UPC in its body. A barcode is unique per company, with no exception; a deleted product's barcodes are freed.
  • Upgrading a company with duplicate barcodes. The database upgrade that makes barcodes unique checks first, and if any barcode is held by two living products it stops without changing anything and lists each barcode with the SKUs holding it. Remove the code from the product it does not belong to (or correct the mistyped one) and run the upgrade again. Nothing is deleted or merged for you.

Rounding precision and decimal places​

Two numbers per unit, and they are held in step by a refusal.

rounding_precision is what every computed quantity in that unit is a multiple of. decimal_places is how many decimals the screen shows and a person may type.

A precision finer than the decimals is refused. Odoo's own documentation warns that a precision below 0.01 conflicts with a decimal accuracy of two and might cause inconsistencies; the two are set by different people in different screens and nothing checks them against each other, so the inconsistency is found in a quantity. Here the combination cannot be saved.

Recommended defaults, and what ships:

Kind of unitPrecisionDecimals
Anything counted (EA, CS, DZ)10
Weight and volume0.0013
Length0.012

Changing a precision changes what every later conversion returns. It is not retrospective — nothing already recorded moves — but it is a decision with a long tail, which is why uom.manage is a manager's permission.

The unmatched-codes warning​

The Units screen shows an alert when a unit code somewhere in the catalogue is not in the unit list. That is the migration's report: it mapped every code it recognised and reported the rest rather than inventing units for them.

It is a live query rather than a stored list, so it empties as you work through it. For each entry, either create the unit or correct the items that name it. Nothing has been guessed on your behalf.

Adding a unit​

New unit on the Units screen opens the form with a rounding precision of 0.001 and three decimal places already filled in, so nobody invents a precision finer than the decimals. The command palette's New unit opens the same form from anywhere (it is the link /products/units?new=1), and an empty unit list offers the button in its place. All three are shown only to somebody holding uom.manage.

Adding a class​

Only when you sell in something none of the five covers — area, for instance. A class is created together with its reference unit and the reference cannot be added later: a class with no reference is a set of units whose ratios are stated against nothing, and the moment one exists somebody will put a unit in it.

The five shipped classes are marked as system classes and cannot be deleted. The tax engine's measures read from them; deleting volume would leave a per-millilitre excise with nothing to convert through.

Collections​

What a collection may carry​

A code, a name, the tree it is in and its parent. Beyond those it says only whether it is still in use. Nothing else, and the absence is the design: no tax category, no regulated category, no standard codes, no costing method, no tracking mode, no item type and no accounts.

A collection says where a product is shown, and a product is in any number of them; the category says what it is, and a product has exactly one. A product in Disposables, Deals and New arrivals could not be taxed by its collections without three answers to one question, so tax, compliance, the GS1 GPC brick and the UNSPSC commodity are all the category's (see Categories). A collection used to carry a tax category, a regulated category and the two codes; they were removed from it, and the products file's codes and every reader now take them from the category.

What a collection does scope:

  • Pricing rules. A rule on a collection reaches every product in it or in a collection under it (Pricing rules);
  • Putaway rules with an In collection condition;
  • Reports grouped or filtered by collection;
  • The online store's navigation and search facets, from the storefront menu tree.

Collection trees​

A tree is one way of arranging the catalogue — the storefront menu, a report's grouping, the deals, a season. Make as many as you need. On Products → Collections the Tree picker above the table chooses the tree drawn (the storefront menu first); New tree and Edit tree set its name and the Storefront menu switch. A tree can be deleted only while it has no collections in it.

  • One tree is the storefront menu. Marking one unmarks the other. The online store draws its menu and its search facets from it; while no tree is marked, it draws them from every tree's collections.
  • A collection stays in its tree. A new top-level collection goes in the tree drawn; a sub-collection is in its parent's tree; a move into another tree is refused. A collection made without a tree — by an older file, say — goes in its parent's, else the storefront menu, else the first tree.
  • A product is in collections from any number of trees. On the product page the Collection field is a checkbox tree: tick each collection it is in. Ticking a parent does not tick its children, so "Vape" and "Vape › Disposables" are two choices. A variant in no collection of its own is shown where its master is.

Moving a subtree​

One operation. The children come with it because they point at it, and the screen reports how many collections and how many items moved. A subtree moves only within its own tree.

A collection cannot move under one of its own descendants: the walk that resolves its ancestors — which a pricing rule reads — would never terminate.

Renaming, retiring and deleting​

  • Rename from Edit on the collection's row; a name is all the dialog edits. The code does not change — it is what an import matches on.
  • Retire a collection that is no longer used: it stays in the tree and in history, and nothing new can be put in it. A collection can be retired only once nothing is directly in it and no active sub-collection hangs off it, so no item is left somewhere the picker no longer offers. Nothing new goes under a retired collection — no new or moved sub-collection, and a retired sub-collection comes back only after its parent; a collection import row that would put one there is reported as a row error.
  • Delete a collection made by mistake. Only an empty one: no items, and no sub-collections, retired ones included.

Each is recorded in the audit log.

The health panel and merging​

The Catalogue health panel on the tree tab lists items with no collection or on a retired one, collections that look like the same one, collections nothing is filed under, and the collections suggested for items nobody has decided on; the Tags tab lists look-alike and unused tags. Under the items with no collection, Show them all in the products list opens the items list on the active items with no collection (/products/items?no_collection=1), for more than the few the panel lists. The panel counts active items too, so the two agree, except that the list goes by the item's own collection: a variant whose template has a collection is filed for the panel and listed there. It is the report the catalogue steward agent reads (GET /api/v1/catalogue/health), so what an agent proposes is what a person sees here. Its fixes go through the screen's own dialogs: a merge through the merge dialog, a retire through the node's edit dialog, a filing through the Add to collection box with its count of what the change reaches. Nothing on the panel is configured; it reads the classifier's settings (inventory.classify_on_create, inventory.classify_auto_threshold, see Inventory — configuration) only through the suggestions it lists.

Merging two collections or two tags takes collection.merge. The dialog offers a choice only where the two differ — for a collection, only the name; a tag, its name and colour. A merge never changes tax: a collection carries none. A product in both stays in the one kept, once ("N of them are in X already and stay in it once"). The dialog counts the items that move, the sub-collections that move and the price, tax and putaway rule entries rewritten, and shows the merge's refusal, if it would be refused, before a reason is asked for. A merge cannot be undone by editing.

Brands​

manufacturer_id points at a party and says who makes it. The supplier on the item says who you buy it from. They are different companies more often than not in regulated goods, and a margin report grouped by the wrong one is wrong in a way nobody queries.

map_price is the minimum advertised price for the whole line. Order entry compares it with each line's price after discount, copies it onto the line, and flags a line under it rather than refusing (sales.priced_under_map in the audit log). Clearing it stops the flag on lines priced afterwards and leaves the lines already priced as they were.

Changing either is audited, because a MAP change moves the floor under every line of the brand and switching a brand off hides it from a facet somebody is selling from. Either can be cleared: a supply agreement that ends takes its MAP with it.

A brand no item carries can be deleted — a typo, caught. One in use is switched off instead, which keeps it on the items and in reports — and stops its MAP on lines priced afterwards, as clearing the MAP does.

Families and lines​

A brand may sit under another (parent_id): a family above a brand above a product line, any depth. There is no setting; the tree is data, kept with brand.manage:

ActionRule
Create under a familyThe family is switched on and not merged away
Move (POST /brands/{id}/move, audited inventory.brand_moved with the count of lines and items that came along)No loop; a switched-on brand does not go under a switched-off one; a switched-off brand may
Switch offRefused while a brand under it is still on (the refusal names how many)
Switch back onRefused while its family is switched off
Retire an empty brand (the agent's tidy-up)Refused while an item carries it or a switched-on brand sits under it
DeleteRefused while an item carries it or any brand sits under it

A brand edit never changes the parent: that is a move, which says what came with it. The brands file (Data → Import) has a Family column (parent_code) with the same rules; a blank family puts the brand at the top.

Where the MAP comes from​

What order entry holds a line to is resolved, in one order, at the moment the line is priced: the item's own MAP (Item.map_price, on the item's Pricing tab), else its variant template's, else its brand's, then up the brand's family, nearest first. A switched-off brand on the way sets none and stops the walk, so an ended line agreement is not replaced by the family's. The item's own MAP wins over a switched-off brand: it is set on the product. The result is copied onto the line (map_price_value) and never re-read, and a quote's line carries its copy onto the order it becomes.

Recommended: set MAPs where the agreement sets them — on the line when it is per line, on the family when it covers the family — and on an item only for the product an agreement prices on its own. An item's own MAP is cleared on the item, which hands it back to the brand chain.

The Brands screen carries the same health panel for brands: items with no brand or a switched-off one, look-alike brands, brands nothing carries, and items whose manufacturer is not their brand's. Merging two brands takes brand.merge, offers the name, manufacturer, MAP and notes where they differ, moves the merged brand's lines under the one kept (refused when the one kept is one of the merged brand's own lines), and counts the items whose MAP would change — through the order above, so the items of the merged brand's lines are counted and an item with its own MAP is not. Items with no brand, or on a switched-off one, are filed in bulk: the panel's File N under Puff Co opens the Change brand box on the items the catalogue suggests that brand for, with the brand chosen and what the change reaches counted before OK, and Show them all in the products list opens the items list on the active items with no brand (/products/items?no_brand=1), the ones the panel counts. Filing a brand writes the item, so it takes item.manage, not brand.manage.

Tags​

Edit a tag's name or colour, or retire it when the campaign is over: it stays on the items wearing it and is no longer offered for new ones. A tag no item wears can be deleted.

Pricing dimensions this adds​

Two, both usable in a price rule's scope from the moment the record exists:

  • brand — registered since the pricing engine shipped, with nothing behind it until brands got a table. Weight 15, between uom and site.
  • item_tag — weight 40, between collection (50) and price_list (30). A collection beats a tag, because a collection is a lasting place in a tree and a tag is a label somebody put on it this month. An item in several collections matches a rule on any of them, and a rule on a collection reaches the collections under it. A tag beats a price list, because a price list is a whole book of prices and a tag names the handful somebody meant.

Where the default sequences consult them. Out of the box, with nothing to configure:

ComponentSteps addedWhere
List price (LIST)item_tag, then brandafter collection, as the last steps
Customer class discount (CLASS)customer_class + brandafter customer_class + category, before customer_class alone
Promotion (PROMO)item_tag, then brandafter item, before the unscoped promotion

So at the list step a rule for the item's collection beats a rule for one of its tags, which beats a rule for its brand, and a rule naming the item itself or its category beats all three. A brand rule prices every item of the brand that has no more specific rule of its own.

Every tag on an item matches at the same weight, which means two rules on two tags of one item are equally specific. Nothing refuses that pair when the second rule is saved — the two rules name different tags, and whether they ever meet depends on which tags an item wears on the day. The engine decides it on the order line instead, the way NetSuite does by default for conflicting price rules: the lower price for the customer wins, whichever rule was written first and whenever each one started. If both give exactly the same price, the older rule is named the winner. The line's price explanation names the rule that lost the tie, so "why not the other discount?" has an answer on the screen. A larger quantity break is not a tie: a rule for 12 or more still beats a rule for any quantity when 12 are ordered.

Names in other languages​

The name of a collection, a tag and a brand (and a category — see Categories) can be translated, with Translations on its row. Nothing else on them is: the code is what an import matches and a document prints, and notes are a manager's own words.

What a reader sees. Each person reads every name in the language of their own preference (Settings → Preferences → Language; the company's language where they have set none). A reader in es-MX gets the es-MX name, else the es one — which the panel offers as Spanish, every region — else the name as typed. That holds on these screens, in every picker, on the product, in the catalogue health panel, in classification suggestions, and in the sentences the server writes beside them (a collection's path, where a MAP comes from). The merge dialog, and a refusal the server gives (a merge's included), name the records as typed.

What keeps the name as typed, whoever is reading:

  • Files. The collections, tags and brands datasets export the name as typed and an import writes it. Translations are not a column; a file never carries them, and an import never clears them.
  • The assistant and agents. Their tools read and write the name as typed; inventory.list_collections, inventory.list_brands and inventory.list_tags show each name's translations beside it, so an agent can see which languages are missing. inventory.translate_name gives a name in a language, or takes it away. It is checked like the screen (translation.write and the record's read permission) and proposes rather than acts unless a rule says it may act alone — a translated name is on every screen its readers open the moment it is saved. The catalogue steward's template ships no such rule.
  • Compliance and behaviour. The PACT report's brand name, duplicate detection and the classifier all read the name as typed. The licence check on order lines reads the regulated category, never a name.
  • Order. Lists stay in the order they always had — collections, tags and categories by code, brands by the name as typed — whatever the reader's language.

Searching. Where the server searches by name — the brand pickers, the products list's search by a brand's name, the categories list's q, and the assistant's list tools — it matches the code, the name as typed, or the name in any language it has been translated into. A screen that narrows what it has already read does not reach the other languages. The Brands screen's search box matches the code, the name the reader sees and the name as typed. The collection and tag pickers, and the category picker on a putaway rule, match only the name the reader sees — a collection picker also by its place in the tree, so a parent's name keeps the collections under it. The category pickers in New item and Change category cannot be searched.

Editing and merging. The edit dialogs show and send the name as typed, so a person reading in Spanish who saves a dialog renames nothing. Renaming changes the name as typed and leaves its translations alone. A merge compares and offers the names as typed; keeping the merged one's name brings its translations, and the survivor's old translations of the name it gave up go.

Audit. A translation is a change to the record: it is in the record's audit history with the before and after, and it moves the record's version — which is why the screens read the list again when the panel closes, so an edit opened afterwards is not refused as somebody else's change.

No flag and no setting. Translating is part of the platform and needs no translation service: the panel's Draft it uses one if the company has connected it (Settings → Integrations → Translation), and a person types the name otherwise. The demo company ships Spanish names for its collections, tags and house brand, so a reader in Spanish sees what this looks like.

How this interacts with other modules​

Tax. The tax engine's per-measure basis reads the item's recorded volume and weight and the item's own pack sizes. The tax category the matrix is keyed on is the product's own, else its master's, else its category's — never a collection's. The standard codes, also on the category, are not tax: the tax engine never reads them, and a tax provider keys on its own codes, not on UNSPSC.

Costing. Nothing here decides a costing method. It resolves item → category chain → company setting, and the collection is not a step.

Pricing. brand and item_tag as above.

Stock. A packaging unit's size is what a scan, a pick and a transfer all convert through, and ItemPackaging and the per-item conversion table are held in step — correcting one corrects the other.