Products, SKUs & Barcode Mapping in Odoo
Learn how to match store items to Odoo products by SKU or Barcode, with rules for automatic creation and accounts.
Product Matching Rules & Priority
When synchronizing orders or catalog data, ERP Link identifies the correct Odoo item using a strict matching hierarchy:
- SKU Matching (`default_code`): The engine searches for an Odoo product where
default_codematches the store variant SKU. - Barcode Matching (`barcode`): If SKU is empty, the engine matches against the international barcode.
- Name Fallback: An optional fallback matching against exact product titles.
We strongly advise standardizing on **SKU (`default_code`)** as the primary immutable identifier across all storefront variants and Odoo items.
Product Settings Reference Table
The table below documents fields in the Products Mapping tab (src/app/(app)/app/mapping-center/standard-components/product-settings-tab.tsx):
| UI Field Name | Operational Role | Options | Practical Impact |
|---|---|---|---|
Primary Match Field (product_match_field) | Target field in Odoo | default_code (SKU) / barcode | Selects which attribute is queried |
Auto Create Products (auto_create_products) | Creates item if missing | Enabled / Disabled | Provisions a new product.product card when an unknown item is ordered |
Default Product Category (default_product_category) | Category for created items | List of Odoo product.category | Automatically assigns new items to this category |
Default Product Type (default_product_type) | Stock trackability | Storable (product) / Consumable (consu) | Determines whether stock pickings track quantities |
Default Income Account (default_income_account) | Ledger revenue account | Odoo chart of accounts | Allocates sales credit to this ledger account |
Handling Variants & Barcodes
For apparel and multi-attribute products with colors and sizes:
- In Odoo: Managed as a
product.templateparent with multipleproduct.productchild variants. - In Storefronts: Each variant holds its own unique SKU and barcode.
- ERP Link resolves line items directly to child
product.productrecords, ensuring accurate inventory deduction for the exact size or color.
Product Matching Diagnostics
- "Product Not Found" Error in Sync Logs:
* *Cause:* SKU in the store contains trailing spaces or is missing from Odoo default_code.
* *Resolution:* Copy the exact SKU into Odoo's Internal Reference field, or enable "Auto Create Products".
- Duplicate Products Created:
* *Cause:* Items share identical names without distinct SKUs.
* *Resolution:* Populate distinct SKUs across all catalog items before running full synchronization.
Encountered an issue applying this guide?
Open a support ticket to have our engineering desk inspect logs directly.