DODIL BLOG
DocsLog inSign up

Modules / Products

Products & price lists

One list of what you sell, with its unit, how it is billed and how it is taxed, and the prices each customer pays: list prices per currency, customer price lists, quantity breaks and dated price changes, so a quote, an order and an invoice all charge the same price without anyone re-typing it.

People ask for it as: “our product list”, “price list”, “different prices for different customers”, “volume discounts”, “the price goes up on the 1st of January”, “SKUs”, “case and pallet barcodes”, “price per 100”, “we only buy full pallets”, “pack weights and dimensions”, “raw materials and trading goods”, “search by material and size”, “reorder point per warehouse”

Who uses it

RoleDoesSees
Whoever keeps the product list (operations, the owner)adds products with their type, sets their unit, category, tax category and billing type, classifies them, archives what is no longer soldevery product
Whoever plans stock per site (the buyer, the warehouse manager)sets per product and site whether it is bought or transferred, its lead times, reorder point, safety stock, min / max and lot size, and blocks a product at one siteevery product and its site data; never cost
Whoever sets prices (the owner, a commercial manager)keeps price lists and their rules, schedules price changes, assigns customers to price listsevery product and price
The owner or a finance controllersets the controls on pricing (whether publishing needs a second person, how far a price may move before it warns)every product and price
Saleslooks up a product and the price a customer paysactive products and the prices of published price lists; never cost
The systemresolves prices on read, checks for duplicates, suggests a new product's details, flags unusual prices, imports a catalogueeverything, through its own service account

What it has to do

Reference user stories. Each has a test written into it — the given / when / then — which becomes an automated check once it is built. Expect to keep some, change some and drop some.

Things people do

  • PRD-01As the person who keeps the product list, I want to add a product once with its code, unit and how it is billed, so that sales, orders and invoices all mean the same thing.

    Given no product with code HOST-M · when I add HOST-M "Managed hosting, per month", unit MON, category hosting, tax category standard, billing recurring / periodic, invoicing policy ordered · then a draft product HOST-M exists; adding a second product with code HOST-M is refused ("HOST-M already exists"); the code is fixed from now on, the name is not

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: not built

    Usually different per customer: the product code format, and whether codes are typed or generated

  • PRD-02As the catalogue manager, I want a product to be sellable only once it is complete, so that nobody quotes something that cannot be invoiced.

    Given a draft product with no tax category · when I activate it · then refused, naming what is missing (tax category); with a unit, a tax category, a billing type and an invoicing policy it becomes active and appears to sales

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: not built

  • PRD-03As the catalogue manager, I want to archive a product we no longer sell, so that it disappears from new quotes without breaking old documents.

    Given an active product on three issued invoices and one open quote · when I archive it · then it is no longer offered for new lines; the invoices and the open quote keep their copy of it unchanged; reactivating it is allowed and recorded

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: not built

  • PRD-04As the catalogue manager, I want products in categories, so that a price rule or a report can cover a whole family at once.

    Given categories hosting and services · when I move a product to services · then from tomorrow, price rules on the services category apply to it; a price asked for today or earlier still uses hosting; documents already priced are unchanged

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: not built

  • PRD-23As the catalogue manager, I want one product counted in several units, each converting exactly to the one we keep stock in, so that purchasing buys packs, sales sells bottles and production consumes litres without anyone converting by hand.

    Given COLA-075 "Cola 0.75 L" with base unit LTR (litre); a bottle (unit C62) is 0.75 LTR; a pack PK24 is 24 bottles · when I set PK24 as its purchase unit, the bottle as its sales unit and LTR as its issue unit · then 2 packs bought = 48 bottles = 36 LTR in stock; a quantity in any of its units converts exactly (a numerator and a denominator, never a decimal factor); a unit with a different meaning for another product (a pack of 12) is that product's own conversion; a conversion is fixed once a document or stock uses it, and a changed pack size is a new unit

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: Odoo 19 relative units (uom.uom relative_uom_id, packagings merged into units); SAP material master base unit + alternative units (MARM numerator / denominator), order / sales / issue unit

    Usually different per customer: which units and packs exist; whether a supplier sells in its own pack (purchasing chooses one of the product's units per supplier)

  • PRD-24As the catalogue manager, I want a product that comes in sizes or colours kept as one template with a variant per combination, so that I describe it once and each variant is its own SKU to price, stock and sell.

    Given template COLA "Cola" with attribute volume (0.33 L, 0.75 L, 1.5 L), category drinks, tax category standard · when I generate its variants · then three draft products COLA-033, COLA-075 and COLA-150 exist, each its own SKU (product_id) carrying the template's category, tax category, billing and units unless it sets its own; generating again adds only missing combinations; a product with no variants is a template with exactly one product; every price, document line and stock row names a product_id, never a template

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: Odoo product.template / product.product (the variant is the SKU); SAP generic article and variants (retail), configurable material (configure-to-order, later)

    Usually different per customer: the attributes (size, colour, volume, material); whether every combination exists or only some

  • PRD-25As the logistics lead, I want each packaging level of a product to carry its own barcode, so that a warehouse scans a case or a pallet and knows how many units it holds.

    Given COLA-075 with the bottle, PK24 and a pallet PALLET80 of 80 packs · when I give each level its GTIN · then scanning the pallet's GTIN answers COLA-075, unit PALLET80, 1 920 bottles; a GTIN is unique across all products and units

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: GS1 GTIN per trade item and packaging level; Odoo 19 packaging barcodes

    Usually different per customer: whether barcodes are used at all; which levels exist

  • PRD-27As the logistics lead, I want a unit to carry several barcodes, one of them the main one, so that our own case barcode and the supplier's both scan to the same pack.

    Given COLA-075 unit PK24 with main GTIN 05012345000015; the supplier's case carries 04006381333931 · when I add 04006381333931 to PK24 as an additional GTIN, then try to add it to COLA-150, then make it the main one, then retire it · then scanning either GTIN answers COLA-075, PK24, 24 bottles (18 LTR), and says which is the main one; adding it to COLA-150 is refused ("04006381333931 is COLA-075 PK24"); making it main makes 05012345000015 an additional one (a unit has exactly one main GTIN while it has any); a GTIN with a wrong GS1 check digit is refused naming the digit expected; a retired GTIN no longer answers a scan for new documents, still names COLA-075 PK24 on every document that scanned it, and is never given to another product

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: SAP MEAN (several EANs per material and unit, one main EAN, MARM-EAN11); GS1 General Specifications 4.2 (check digit); Odoo product.packaging barcode (16-18), product.uom barcode (19)

    Usually different per customer: whether supplier barcodes are kept beside your own; GTIN-8/12/13/14 or the customer's internal codes

  • PRD-28As the logistics lead, I want each unit's weight, volume and dimensions recorded, so that a delivery note shows its weight and a carrier can be booked without measuring the boxes again.

    Given COLA-075 units C62 (bottle), PK24 and PALLET80 · when I record PK24 at gross 19.2 KGM, net 18.0 KGM, volume 0.027 MTQ, 40 x 27 x 25 CMT, and the bottle at gross 0.79 KGM, net 0.75 KGM · then GET /products/COLA-075 answers each unit with the measures in force today and their units; a net weight above the gross weight is refused; a weight in a unit that is not a mass (a volume in a length) is refused naming the unit's kind; a unit with no measures answers them as unknown, never 0. v3: measures are DATED rows (prod_unit_measure), never frozen by use: after a delivery copied 19.2 KGM, I correct PK24 to 19.6 KGM from today; the delivery keeps 19.2, a delivery written after the correction copies 19.6, and GET /products/COLA-075?on=<an earlier date> answers 19.2; a measure dated before today is refused; a second correction on the same day replaces the first only while no document has copied it, else it is refused ("a document copied today's row: correct from tomorrow"); the conversion of PK24 stays frozen

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: SAP MARM (BRGEW gross weight, NTGEW net weight on MARA, GEWEI weight unit, VOLUM / VOLEH volume, LAENG x BREIT x HOEHE / MEABM dimensions per alternative unit; changeable at any time, deliveries copy them into LIPS); Odoo product weight and volume (base unit only)

    Usually different per customer: which units need measures (usually the case and the pallet); kg or lb, cm or in

  • PRD-29As the catalogue manager, I want to say which unit each part of the business uses (buying, selling, issuing to work, producing, handling in the warehouse, delivering), so that every screen opens in the unit people actually count in.

    Given COLA-075, base LTR, with units C62, PK24 and PALLET80 · when I set purchase PK24, sales C62, issue LTR, production LTR, warehouse PK24 and delivery C62 · then each role names one of the product's own units (or the base unit); a role naming a unit the product does not have is refused; base and sales are required to activate, the others default to the base unit when unset and say so; a role set on the template COLA is inherited by every variant unless the variant has its own row; a role is a dated row, so changing it is a new row from a later date: the default for new lines only, never a document or a price for today or earlier

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: SAP MARA-MEINS base, MARA-BSTME order unit, MVKE-VRKME sales unit, MARC-AUSME unit of issue, MARC-FRTME production unit, MLGN-LVSME WM unit, MVKE-SCHME delivery unit

    Usually different per customer: which roles differ from the base unit; most firms set only purchase and sales

  • PRD-30As the catalogue manager, I want a minimum and a multiple per product and role, so that we buy only full pallets and deliver only in sixes without anyone remembering it.

    Given COLA-075, purchase unit PK24, delivery unit C62 · when I set the purchase rule "at least 80, in multiples of 80 PK24" (a full pallet) and the delivery rule "multiples of 6 C62" from tomorrow · then two dated unit_role rows exist (on the template where set there, inherited by every variant), each in the unit it was written in; GET /products/COLA-075/rounding?role=purchase&quantity=100&unit_code=PK24 answers {met: false, next_down: 80, next_up: 160, reason: "COLA-075 is bought in multiples of 80 PK24"}; 3 PALLET80 meets it (240 PK24); 20 bottles is not a multiple of 6, 24 is; a multiple that does not convert exactly into the asked unit is answered in the rule's own unit; a rule dated today or earlier is refused; product enforces nothing itself: purchasing and sales-order decide what an unmet rule does

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: SAP rounding value and rounding profile (MARC-BSTRF, EINE-RDPRF), minimum order quantity (MARC-BSTMI), minimum delivery quantity and delivery unit (MVKE-LFMNG, MVKE-SCHME)

    Usually different per customer: which products have rules; a minimum, a multiple, or both

  • PRD-34As the catalogue manager, I want packs, barcodes, weights, roles and rounding set once on a template and inherited by its variants, with a variant overriding only what differs, so that three volumes of one drink are not three sets of the same data.

    Given template COLA, base unit LTR, variants COLA-033, COLA-075 and COLA-150; the bottle C62 is per SKU (0.33, 0.75 and 1.5 LTR: litres per bottle differ by variant); on the template PK24 = 24 C62 (relative to the bottle), gross 19.2 KGM, purchase role PK24 in multiples of 80 · when COLA-150 gets its own PK24 row with gross 37.4 KGM, a PK6 = 6 C62 and its own sales role PK6 from tomorrow; then an order for COLA-075 uses PK24; then the template's PK24 conversion is changed, its weight corrected to 19.4 KGM from today, and a GTIN is put on the template · then COLA-075's PK24 is 18 LTR (24 x 0.75, composed exactly), 19.2 KGM and purchase-rounded to 80 from the template; COLA-150's PK24 is 36 LTR and 37.4 KGM (its own rows win, whole), and it sells in PK6 from tomorrow while the others sell by the bottle; COLA-033 inherits everything but its bottle; after the order, the template's PK24 conversion is frozen ("PK24 on template COLA is used by sales order SO-2026-0012 for COLA-075"), COLA-150's own conversion is still editable until it is used; the weight correction is a new dated template row, inherited by COLA-075 and COLA-033 for documents written from now (v3), the order keeps 19.2; the template GTIN is refused ("COLA has 3 products: a GTIN names one, set it on the SKU")

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: SAP generic article: variant-specific MARM / MEAN rows over the generic article's; Odoo 19 relative units on product.template

    Usually different per customer: which data differ by variant (usually the base conversion, the barcodes and the weights)

  • PRD-35As the catalogue manager, I want each product to have a type (something we resell, something we make, a raw material, a service, a consumable we do not stock), so that the right things are asked before it can be used and each module treats it the right way. v5 (seemo, 2026-10-24) - the type is MANDATORY on every door (by hand, the catalogue import PRD-22, the Odoo slice PRD-33), so a product without one is refused, never defaulted silently.

    Given types seeded: LEGACY (v5: for products that existed before types were mandatory; carries the product's own kind and stocked_default, sellable and purchasable, no required roles, so nothing changes until a person re-types), TRADING (goods, stocked, sold and bought; needs sales and purchase units), FINISHED (goods, stocked, sold; production fields reserved for M7), RAW (goods, stocked, bought, not sold), SERVICE (service, never stocked), NONSTOCK (goods bought for use, not stocked), PACKAGING (goods, stocked, bought); TRADING has the code format TRD-{seq:5} · when I add a TRADING product without a code, activate it without a purchase unit, add a RAW product to a sales order, change a product's type after a receipt used it, and change a draft's type · then the TRADING product is numbered TRD-00001 from the type's series (claimed with a plain INSERT, never reused, no gap from a refused add); activating it is refused (gate type_requirements, "TRADING needs a purchase unit"); the sales order line is refused by product's line data (sellable false: "RAW products are not sold: change the type or make a TRADING product"); the type change after use is refused (gate type_unused); the draft's type change is recorded; v5: at creation the product COPIES its type's settings (kind, stocked_default, sellable, valuation_class, required unit roles), so a later edit of the TYPE changes only products created afterwards, never an existing one; change_product_type re-copies the new type's settings onto the product; a product added with no type is refused 422 (gate type_named) on every door; inventory reads stocked_default from GET /products/{product_id} to decide whether to stock it, and an account map may name the type's valuation_class

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: SAP material type (MTART: HAWA trading goods, FERT finished, ROH raw, DIEN service, NLAG non-stock, VERP packaging; T134 field selection, number range, quantity / value update, valuation class); Odoo product type (goods | service | combo) and is_storable

    Usually different per customer: which types exist; whether codes are typed or numbered per type

  • PRD-36As the catalogue manager, I want to describe products by characteristics (material, length, thread, colour) in classes, so that anyone can find the right screw by what it is, not by guessing its code.

    Given characteristics MATERIAL (list: A2, A4, ZINC), LENGTH (number, unit MMT), THREAD (list: M3, M4, M5); class SCREWS with MATERIAL and THREAD required and LENGTH optional; products SCREW-M4-20 and SCREW-M4-30 · when I put both in SCREWS, set SCREW-M4-20 to A2, M4, 20 MMT and SCREW-M4-30 to A4, M4, 30 MMT, set LENGTH to 2 CMT, set MATERIAL to BRASS, and search MATERIAL A2 and LENGTH at least 20 MMT · then the search answers SCREW-M4-20 only; 2 CMT is stored as 20 MMT, converted exactly through unit_conversion; BRASS is refused ("MATERIAL allows A2, A4, ZINC"); activating a product in SCREWS without THREAD is refused (gate class_complete); a value change is a new dated row from today, so the class a product was in and its values on any date stay answerable; a template's values are inherited by its variants unless a variant sets its own; a template attribute may name a characteristic, so generated variants carry their value (volume 0.75 L)

    Whoever keeps the product list (operations, the owner) · screen: Products · reference: SAP classification (CL01 / CT04 / CL20N, class type 001 material class, search by characteristic values CL30N); Odoo has product attributes for variants only

    Usually different per customer: whether classification is wanted at all (usually for technical goods and spare parts)

  • PRD-37As the person who plans stock, I want to say per site whether a product is bought or transferred from another site, how long that takes, and when to reorder, so that each warehouse replenishes the way it really works.

    Given COLA-075 at sites WH1 (Leeds) and WH2 (York); purchase unit PK24 (18 LTR) · when from tomorrow I set WH1: procurement buy, planned delivery 5 days, goods-in 1 day, planning min_max, reorder point 360 LTR, safety stock 90 LTR, max 1 440 LTR, rounding profile PALLET-LAYER; WH2: procurement transfer from WH1, 2 days, planning reorder_point 72 LTR, lot size fixed 144 LTR; and block COLA-075 for sale at WH2 from next Monday · then each is a dated row (product_id, site_id, valid_from); GET /products/COLA-075/sites/WH1 answers it with quantities in the base unit and in the purchase unit; a reorder point above the max, a safety stock above the reorder point, a supplying site equal to the site, or a row dated today or earlier is refused with the reason; procurement make and planning mrp are refused ("production planning arrives in M7"); from Monday GET /products/COLA-075/sites/WH2 answers site_status no_sale and sales-order's line check refuses COLA-075 for delivery from WH2; a site the product has no row for answers planning none, procurement buy, status active

    Whoever plans stock per site (the buyer, the warehouse manager) · screen: Products · reference: SAP plant data (MARC: MMSTA plant status, BESKZ procurement type, SOBSL special procurement (stock transfer), PLIFZ planned delivery time, WEBAZ GR processing time, DISMM MRP type VB / VM / V1, MINBE reorder point, EISBE safety stock, MABST maximum, DISLS lot size EX / FX / HB, RDPRF rounding profile); Odoo reordering rules (stock.warehouse.orderpoint min / max per warehouse)

    Usually different per customer: whether more than one site exists; which products are planned at all

  • PRD-38As the planner, I want a proposed order quantity rounded to full pallets or layers when it is close to one, so that we do not buy 75 packs when a pallet of 80 is cheaper to ship.

    Given COLA-075 purchase unit PK24 with the purchase rule at least 10 PK24; rounding profile PALLET-LAYER: step 80 PK24 (a pallet) rounding up from 90%, step 10 PK24 (a layer) rounding up from 50% · when inventory's replenishment proposes 75, 47 and 163 PK24 and asks the rounded quantity · then GET /products/COLA-075/round-proposal answers 80 (75 is 94% of a pallet), 50 (no pallet reached; 47 is 4 layers and 70% of a fifth) and 160 (2 pallets; the 3 left are under both thresholds); each answer names the steps applied and is checked against the purchase rule (min 10); a person's own order quantity is never rounded by a profile (it is gated by the purchase rule only, PRD-30); a step that is not a multiple of the purchase rule's multiple is refused when the profile is saved

    Whoever plans stock per site (the buyer, the warehouse manager) · screen: Products · reference: SAP rounding profile (OWD1, static: threshold value per rounding step; MARC-RDPRF), applied to planned and proposed quantities

    Usually different per customer: whether pallet and layer rounding matters (wholesale, bulky goods)

  • PRD-05As the person who sets prices, I want a price list per currency with a list price for each product, so that every quote starts from the same number.

    Given a price list LIST-GBP in GBP · when I set HOST-M to 120.00 from 2026-11-01 · then a price row (LIST-GBP, HOST-M, unit MON, valid from 2026-11-01) exists; a second price for the same product and date is refused; an earlier row is not changed

    Whoever sets prices (the owner, a commercial manager) · screen: Price lists · reference: partial: brick-quote 0.2.0 quote_prices holds (price_book_id, product_id, currency, valid_from, list_price)

  • PRD-06As the pricing manager, I want rules (a fixed price, a percentage off another list, a quantity break, a date window), so that customer and volume pricing is not a spreadsheet beside the system.

    Given list LIST-GBP with HOST-M at 120.00, and list PARTNER-GBP with the rules, in this order, 1 "from 10 units, 15% off LIST-GBP" and 2 "10% off LIST-GBP for category hosting" · when a price is asked for 12 HOST-M on PARTNER-GBP · then 102.00 a unit, with the rule that produced it named; for 5 units 108.00; the rules apply in the list's stated order and the first that matches wins

    Whoever sets prices (the owner, a commercial manager) · screen: Price lists · reference: not built

    Usually different per customer: whether rules are needed at all; most small firms want one list per currency

  • PRD-26As the pricing manager, I want to price a product per unit, so that a pack can cost less than the same bottles sold one by one.

    Given LIST-GBP COLA-075 at 1.20 a bottle and 24.00 a PK24; and a rule "all variants of template COLA, 5% off" on PARTNER-GBP · when prices are asked for 2 PK24, for 48 bottles, and for 3 bottles of COLA-150 on PARTNER-GBP · then 48.00 for the packs (the pack's own row), 57.60 for the bottles (the bottle's row), and COLA-150's bottle price less 5%; a unit with no row of its own is priced from the base-unit row by its exact conversion, and the answer says so; quantity breaks compare quantities in the base unit

    Whoever sets prices (the owner, a commercial manager) · screen: Price lists · reference: SAP condition records per sales unit; Odoo pricelist per product variant

    Usually different per customer: whether packs are priced on their own or always from the single unit

  • PRD-31As the pricing manager, I want to state a price per 100 or per 1000 units, so that a screw costing a fraction of a penny is priced exactly, the way the supplier and the customer quote it.

    Given SCREW-M4, base unit C62, on LIST-GBP · when I set 2.4500 per 100 C62 from tomorrow, and a price is then asked for 250 C62 and for 3 BX500 (a box of 500) · then the row is (LIST-GBP, SCREW-M4, C62, valid_from) with pricing_quantity 100; find_price answers {unit_price: "2.4500", pricing_quantity: 100, pricing_unit_code: C62, amount: "6.13"} for 250 (6.125 rounded once, half up) and {unit_price: "2.4500", pricing_quantity: 100, pricing_unit_code: C62, amount: "36.75"} for 3 BX500 (1 500 C62), the pricing unit kept as the row's because the box has no row of its own; a pricing quantity of 0, a fraction or above 100000 is refused; a percentage rule applies to the price per pricing quantity; quantity breaks still compare in the base unit

    Whoever sets prices (the owner, a commercial manager) · screen: Price lists · reference: SAP condition pricing unit and condition unit (KONP-KPEIN / KMEIN), price unit on the info record and PO (EINE-PEINH, EKPO-PEINH); Odoo has no pricing quantity (a price is per one unit)

    Usually different per customer: whether any product is priced per 10, 100 or 1000; most firms price per one

  • PRD-07As the pricing manager, I want a new price list or a price change to be checked before sales sees it, so that a typo does not reach a customer.

    Given a draft list with a price 90% below the list it is based on · when I publish it · then the publish shows the warning and, where the setting asks for it, waits for a second person's approval; once published, sales prices from it on the valid_from date; a publish that would change the price on a date already past is refused

    Whoever sets prices (the owner, a commercial manager) · screen: Price lists · reference: not built

  • PRD-08As the pricing manager, I want to give a customer their own price list, so that the price they agreed is the price they are quoted.

    Given a customer with bp_id 7311 and the published list PARTNER-GBP · when I assign PARTNER-GBP to them for GBP · then from the assignment's valid_from (tomorrow or later, never a past date) every price asked for that customer in GBP resolves from PARTNER-GBP; a customer with no assignment gets the currency's default list on that date

    Whoever sets prices (the owner, a commercial manager) · screen: Price lists · reference: not built

  • PRD-09As the pricing manager, I want to raise a set of prices by a percentage from a date, so that the annual increase is one action rather than two hundred edits.

    Given 40 hosting products on LIST-GBP · when I raise category hosting by 5% from 2027-01-01, rounded to the list's rounding rule · then 40 new price rows valid from 2027-01-01 exist, as a draft change; nothing changes before publish; running it twice creates nothing more

    Whoever sets prices (the owner, a commercial manager) · screen: Price lists · reference: not built

  • PRD-10As a sales rep, I want to look up what a customer pays for a product today, so that I can answer on the phone.

    Given a customer on PARTNER-GBP · when I ask for HOST-M, 12 units, today · then I see 102.00, the list it came from and the rule; never the cost

    Sales · screen: Products · reference: not built

Things that happen on their own

  • PRD-11on read (derived)The system resolves a price when it is asked (product, quantity, customer, currency, date), so that no stored "current price" can go stale.

    Given rows valid from 2026-11-01 (120.00) and 2027-01-01 (126.00) · when a price is asked for 2026-12-31 and for 2027-01-01 · then 120.00 and 126.00; the answer names the price list, the rule and the row it used; asking twice gives the same answer

    · reference: not built

  • PRD-12when a product is added or its description changesThe system checks whether the product already exists under another code, so that the list does not fill with duplicates.

    Given HOST-M "Managed hosting, per month" exists · when someone adds HOSTING-MONTHLY "Monthly managed hosting" · then the catalogue manager is shown the likely duplicate and may continue; nothing is merged automatically

    · reference: not built

  • PRD-32on read (derived), when a purchasing, sales-order or inventory line asksThe system answers whether a quantity meets a product's rounding rule for a role, so that every module that orders, sells or delivers applies the same rule.

    Given COLA-075 purchase rule at least 80, multiple 80 PK24 from 2026-11-01; delivery rule multiple 6 C62 · when GET /products/COLA-075/rounding is asked for (purchase, 100 PK24, on 2026-11-02), (purchase, 100 PK24, on 2026-10-30), (delivery, 2 PK24) and (production, 5 LTR) · then unmet with next_down 80 and next_up 160; met (no rule in force yet) with reason "no rule on 2026-10-30"; met (48 C62 is a multiple of 6); met with reason "no rule for role production"; each answer names the rule row it used; asking twice gives the same answer; nothing is stored

    · reference: not built

Things that cross into other modules

  • PRD-20when a quote line is added or re-pricedThe quote asks this module for the price instead of keeping its own price book.

    Given brick-quote with the price book in quote_prices (0.2.0) · when a rep adds a line · then quote calls find_price(product_id, quantity, unit_code, bp_id, currency, priced_on), unit_code defaulting to the product's sales unit, and stores the answer on its line; quote_prices is migrated here once, keyed the same, and quote stops writing it

    · owned by product · reference: not built

  • PRD-21when an order or invoice line names a productOrders and invoices copy what they need from the product at that moment, so that a later rename never rewrites a document.

    Given HOST-M with its description, unit, tax category and invoicing policy · when a sales order line is added for it · then the order line holds a copy of those fields, the product_id, the unit it was sold in and that unit's conversion to the base unit; the product module is not called again for that line

    · owned by product · reference: not built

  • PRD-22on a one-off importA catalogue from a spreadsheet or another system arrives once and can be re-run safely.

    Given a file of 300 products and their list prices · when it is imported twice · then 300 products and 300 price rows exist, keyed on the product code and (list, product, unit, valid_from); the second run changes nothing

    · owned by product · reference: not built

  • PRD-33on the one-off Odoo migration (milestone M8), after business-partnerThe customer's Odoo units, packagings and barcodes arrive once as our units, their exact conversions and their GTINs, so that every later brick maps an Odoo quantity to ours without a float.

    Given an Odoo 19 database with units Units, Pack of 24 (relative to Units, factor 24), kg and g, product COLA-075 sold in Units and Pack of 24 with a packaging barcode on the pack; and an Odoo 17 database with product.packaging Pack of 24 (qty 24, barcode 04006381333931) · when the migration runs twice · then Units -> C62, kg -> KGM, g -> GRM (fixed conversions from prod_unit_conversion), Pack of 24 -> the product unit PK24 with numerator 24 / denominator 1; the pack barcode -> PK24's main GTIN, a second barcode for the same unit an additional GTIN; product weight and volume -> the base unit's gross weight and volume; every price row pricing_quantity 1; an Odoo factor that is not an exact fraction within the unit's rounding stops the run with the unit listed; the second run changes nothing; GET /migration-map/{db}/uom.uom answers each Odoo unit's unit_code for the later bricks

    · owned by product · reference: not built

  • PRD-39when inventory plans replenishment, checks availability per site, or a selling or buying brick checks a product at a siteInventory, sales-order and purchasing read a product's site data from this module, so that a reorder point, a lead time or a site block is kept in one place.

    Given COLA-075 with site rows for WH1 and WH2 (PRD-37) · when inventory's nightly replenishment asks GET /product-sites?site_id=WH1&planning=active, sales-order asks GET /products/COLA-075/sites/WH2?on=2026-11-02 for a line delivered from WH2, and the same is asked twice · then inventory receives every product planned at WH1 with its row in force on the asked date; sales-order receives site_status and the planned delivery days; the answers are derived from the dated rows and repeat exactly; nothing is copied into inventory's tables beyond what a proposal records it used (the row's valid_from)

    · owned by product · reference: not built

  • PRD-40when a shop's register takes its price snapshot (pos POS-30), and when any module needs a whole listA register reads a whole published price list once instead of one product at a time, so that a layout of 200 buttons is priced in one call with the same answers find_price gives.

    Given LIST-SHOP-GBP published, 180 products, two of them with a scale (from 10 C62); a price row of COFFEE-250 changing on 2026-12-01 · when pos calls GET /price-lists/LIST-SHOP-GBP/prices?on=2026-11-20, then pages with offset · then every product with a price on the list in force on 2026-11-20 is answered once per (unit_code, from_quantity) with the price find_price would give for that quantity, its pricing quantity and unit and priced_from (rows derived from a price rule answer the rule's result, never the rule); next_change_on says 2026-12-01, the first date after `on` on which any answered row changes, so the register knows when its snapshot goes stale; a draft or retired list is 404; customer-specific lists are never part of it

    · owned by product · reference: not built

  • PRD-41when sales-order drafts, re-prices or confirms an order (SO-02, SO-28), and when any module prices many lines at onceAn order of many lines asks product once for every line's price (and, at confirm, its delivery rounding) instead of once per line per route, so that a fifty-line order costs product what a one-line order costs and every line gets the answer the one-line routes give.

    Given TRD-00001 and TRD-00002 active with GBP rows on the default list; TRD-00002 delivered in multiples of 6 (a delivery role rule); customer bp 1001 · when sales-order calls POST /prices/batch {bp_id: 1001, currency: GBP, priced_on: 2026-11-02, lines: [{line_no: 1, product_id: TRD-00001, quantity: "3"}, {line_no: 2, product_id: TRD-00002, quantity: "4", rounding_role: delivery}, {line_no: 3, product_id: NOPE, quantity: "1"}]} · then one answer per line, in the order asked, each naming its line_no: line 1's price is field for field what GET /products/TRD-00001/price?quantity=3&bp_id=1001&currency=GBP&priced_on=2026-11-02 answers; line 2 also carries rounding, what GET /products/TRD-00002/rounding?role=delivery&quantity=4&unit_code=C62&on=2026-11-02 answers (met false, next_up 6); line 3 is {status: 404, reason: "no product NOPE"} and lines 1 and 2 are still answered (a line's refusal never refuses the batch); more than 200 lines is refused 422 as a whole; the reads product makes do not grow with lines of products already in the batch (the statement budget test, 2 lines against 20)

    · owned by product · reference: erp-brick-product 0.2.2 (branch perf/batch-price until signed)

How things move

product

draft → active → archived

  • none → draft by catalogue_manager · when the code is not in use; a product type is named, mandatory on every door (v5, gate type_named) · the code is fixed from now on (typed, or claimed from the type's series); kind and stocked_default taken from the type
  • draft → draft by catalogue_manager · when readiness: type_unused (no document or stock has used any unit of the product) · needs reason · v5: kind, stocked_default, sellable, valuation_class and the required unit roles are COPIED again from the new type; the code is kept; from LEGACY it is allowed on an active, used product once, when the new type's kind and stocked_default equal the product's own (no change of behaviour)
  • draft → draft by system · when the duplicate check is on · a likely duplicate is shown; nothing is merged
  • draft → draft by system · when the field is empty and the step is on · a suggestion the catalogue manager accepts or changes
  • none → draft by catalogue_manager · when a template with at least one attribute and its values · one draft product per missing combination; existing ones untouched
  • draft → draft by catalogue_manager · when every unit converts exactly to the base unit; every role names one of the product's units · the roles chosen (sales, purchase, issue, production, warehouse, delivery); packaging levels, their GTINs (one main per unit), weights, volumes and dimensions
  • draft → draft by catalogue_manager
  • draft → draft by catalogue_manager · when each value allowed by its characteristic (list, number with a unit of the right kind, date) · class assignments and dated characteristic values; searchable by them
  • draft → active by catalogue_manager · when readiness: units_complete, type_requirements (the roles and fields its type asks for, v3), class_complete (every required characteristic of its classes, v3); tax category, billing type and invoicing policy set · offered to sales (where its type is sellable) and to purchasing (where purchasable)
  • active → active by catalogue_manager · when a new unit code with an exact conversion; a conversion already used is never changed · the new unit can be bought, sold or issued from now
  • active → active by catalogue_manager · when a valid GS1 check digit; the GTIN on no other product or unit, retired ones included; on a template only while it has one product · one main GTIN per unit, the others additional, on the SKU (or a one-product template); a retired GTIN still names its unit on old documents
  • active → active by catalogue_manager · when net weight not above gross; each measure's unit of the right kind (mass, volume, length); valid_from today or later (v3); a row for today is replaced only while no document has copied it · a dated prod_unit_measure row per one of the unit, on the template (inherited) or the SKU (its own row wins); never frozen by use (v3): documents keep the copy they took
  • active → active by catalogue_manager · when the role's unit or another unit of the product; starts after today · a dated unit_role row on the template (inherited) or the SKU (its own row wins); purchasing and sales-order gate on it from its valid_from; a used row is never edited
  • active → active by catalogue_manager · when the value allowed; valid_from today or later · a new dated value row; search answers by the value in force on the date asked
  • active → active by planner · when readiness: site_row_after_today, site_quantities_consistent (safety stock <= reorder point <= max), supplier_site_valid (a transfer names another site of the same company), manufacturing_installed (v6: procurement make and planning mrp only when manufacturing is in the composition; was not_reserved_m7) · a dated prod_site row; inventory plans from it and sales-order and purchasing read its site status from its valid_from
  • active → active by catalogue_manager · documents already raised keep their copy
  • active → archived by catalogue_manager · no new lines; existing documents unchanged
  • archived → active by catalogue_manager · needs reason

price_list

draft → published → retired

  • none → draft by pricing_manager · when a currency (ISO 4217); a base list in the same currency with the same VAT basis; rounding no finer than the currency's minor unit · based on another list, or standalone
  • draft → draft by pricing_manager · when a pricing quantity is a whole number from 1 to 100000 · dated rows per product and unit, each a price per its pricing quantity (default 1), rules, and the list's default_from, all still editable; nothing visible to sales yet
  • draft → draft by system · when the price check is on · outliers against the base list and similar products are listed for the pricing manager
  • draft → published by pricing_manager · when every row and rule has a valid_from after today, or today while the currency has no published price yet; a default_from after today, or today for the first default list of a currency; the approver is not the author where the setting asks for one · sales prices from it on each row's valid_from; from its default_from it is the currency's default list
  • published → published by pricing_manager · when every new row starts after today · new rows with a later valid_from; old rows are never edited
  • published → published by pricing_manager · when the assignment starts after today · their prices in this currency resolve from this list from that date
  • published → retired by pricing_manager · when not the default of its currency today or later, and not the base of another list or rule · assigned customers fall back to the default list; prices for past dates still resolve from it

What it keeps

ThingMeaningIdentified byShared?
product templatewhat several products have in common (Cola, in three volumes); a product with no variants has a template with exactly one productproduct_template_id (the customer's own code, e.g. COLA)module-owned; read only through its products
productsomething the business sells (or buys), goods or a service, with how it is billed and taxed; one SKU, a variant of its templateproduct_id: the customer's own code (SKU), VARCHAR, fixed once set (shared.yaml keys.product_id)SHARED: sole writer product; sales (quote, sales-order), invoicing and purchasing read it
product categorya family of products a rule or a report coverscategory_codemodule-owned (configuration)
product category membershipwhich category a product, and a category's parent, sits in from a date, so a price rule on a category resolves as it stood on the date askedproduct_or_categoryvalid_frommodule-owned (append-only; a move adds a row from tomorrow)
unithow a quantity is counted (each, hour, day, month, kilogram)unit_code: UN/ECE Recommendation 20 code (C62 one, HUR hour, DAY day, MON month, KGM kilogram)module-owned (configuration, seeded)
product unita unit a product can be counted in and its exact conversion to the product's base unit, with its packaging level, barcode and measuresowner (product_template_id or product_id)unit_codemodule-owned; a product's own row overrides its template's for the same unit
product unit measurea unit's gross and net weight, volume and length x width x height, per ONE of the unit, from a date (v3, SAP MARM: not valuation, so never frozen)owner (product_template_id or product_id)unit_codevalid_frommodule-owned (append-only; valid_from today or later; the row for today may be replaced only while no document has copied it)
product typewhat kind of product this is for every module (SAP material type): trading goods, finished, raw material, service, non-stock, packaging (v3)product_type_code (TRADING, FINISHED, RAW, SERVICE, NONSTOCK, PACKAGING seeded; the customer may add their own)module-owned (configuration, seeded)
product code seriesthe next number of a type's code format (v3)product_type_codenumbermodule-owned (a claim row per number, plain INSERT: never reused, no gap from a refused add because the number is claimed in the add's own write)
characteristica property a product can be described and found by (material, length, thread) (v3, SAP classification)characteristic_codemodule-owned (configuration)
product classa set of characteristics that describe a family (SCREWS: material, thread, length) (v3)class_codemodule-owned (configuration)
product classificationa product's (or template's) class and its characteristic values, from a date (v3)owner (product_template_id or product_id)class_codecharacteristic_codevalid_frommodule-owned (append-only; valid_from today or later; a template's values are inherited, a SKU's own row wins)
product sitehow one product is procured, planned and allowed at one site (SAP plant data, MARC), from a date (v3)product_idsite_id (inventory's warehouse_id)valid_frommodule-owned (append-only; valid_from after today); read by inventory, sales-order and purchasing only through GET /products/{product_id}/sites/{site_id} and GET /product-sites
rounding profilehow a SYSTEM-PROPOSED quantity is rounded to pallets or layers when close to one (v3, SAP OWD1 static profile)rounding_profile_codemodule-owned (configuration)
product gtina barcode (GTIN) that names one product unit: one main per unit, any number of additional ones (v2, SAP MEAN)gtin (14 digits, left-padded with zeros; unique across every product and unit, for ever)module-owned; GET /gtin/{gtin} reads it
unit rolewhich unit one role uses (sales, purchase, issue, production, warehouse, delivery) and that role's rounding (a minimum and a multiple), from a date (v2)owner (product_template_id or product_id)rolevalid_frommodule-owned (append-only; valid_from after today, the first rows of a draft product may start today); read through GET /products/{product_id} (roles) and GET /products/{product_id}/rounding, never by another brick's SQL
unit conversiona conversion true for every product (1 KGM = 1000 GRM)from_unit_codeto_unit_codemodule-owned (configuration, seeded from UN/ECE Rec 20)
price listthe prices a group of customers pays in one currencyprice_list_id (the customer's own code, e.g. LIST-GBP)module-owned (configuration)
price rowone product's price on one list from a dateprice_list_idproduct_idunit_codevalid_frommodule-owned (configuration)
price rulea price derived from another (a percentage off a list, a quantity break, a category-wide rule)price_list_idseqmodule-owned (configuration)
customer price listwhich list a customer is priced from, per currencybp_idcurrencyvalid_frommodule-owned
settingshow this business keeps products and priceskeymodule-owned (configuration)

A product list kept in sales AND in invoicing is how a renamed product bills under its old name and a price rise reaches quotes but not renewals. One writer, everyone else copies on the line.

What runs on its own

StoryWhenWhat
PRD-11on readprice resolution
PRD-12when a product is added or its description changesthe duplicate check (embedding similarity over name + description)

Questions that shape your version

Read these out and let the customer correct one — people rarely recall a policy on demand and can always react to one. Standard is a named authority you can look up and hold us to. Commonly seen is exactly that: arrangements we have met, with no survey behind them. A customer doing none of them is not doing it wrong.

  1. Do different customers pay different prices, or is there one price per currency?
    b2b services
    one list per currency, with a handful of negotiated customer lists
    wholesale
    tiers (trade, distributor, retail) with quantity breaks
    saas
    one public list; discounts negotiated on the quote, not in a list
  2. Do your prices include VAT?

    Standard HMRC VAT Notice 700 para 17.5.2 permits VAT per unit, for price lists, rounded to 4 then 3 decimals or to the nearest 1p / 0.5p (never to nil on a standard or reduced rated unit)

    b2b
    prices exclude VAT
    retail consumer
    prices include VAT
  3. When prices change, from what date, and who checks the new list?
  4. Do you sell the same product in variants (size, colour, term)?
  5. How do you count each product, and do you buy, sell or use it in different units or packs?

    Standard UN/ECE Recommendation 20, codes for units of measure used in international trade

  6. Must anything be bought or delivered only in whole packs or pallets, or above a minimum?
    wholesale
    buy in full pallets or layers, sell in cases
    services and retail
    no rules
  7. Is anything priced per 10, 100 or 1000 (screws, labels, printing)?
  8. What kinds of products do you have (things you resell, make, consume, services), and should codes be numbered per kind?
    wholesale
    TRADING and SERVICE only
    light manufacturing
    RAW, PACKAGING, FINISHED, SERVICE
  9. Do people search products by their properties (material, size, thread, voltage)?
  10. Do you stock in more than one site, and does each site buy for itself or get transferred stock?
    one site
    no site rows (buy, planned by hand)
    hub and shops
    the hub buys, the shops are supplied by transfer with a reorder point
  11. Do your packs carry barcodes, and do suppliers' packs carry their own?

    Standard GS1 General Specifications: GTIN allocation per trade item and packaging level

What you can change yourself

These are settings, not code: someone in your team changes them on a screen, without a developer and without a release.

For builders

Code

Public repositories, anonymous clone, one release tag each. Read README.md and AGENTS.md first.

Known gaps in the reference

© 2026 DODILHomeDocsConsole