6 min read•Updated: 2026-11-24

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:

  1. SKU Matching (`default_code`): The engine searches for an Odoo product where default_code matches the store variant SKU.
  2. Barcode Matching (`barcode`): If SKU is empty, the engine matches against the international barcode.
  3. Name Fallback: An optional fallback matching against exact product titles.
Tip

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 NameOperational RoleOptionsPractical Impact
Primary Match Field (product_match_field)Target field in Odoodefault_code (SKU) / barcodeSelects which attribute is queried
Auto Create Products (auto_create_products)Creates item if missingEnabled / DisabledProvisions a new product.product card when an unknown item is ordered
Default Product Category (default_product_category)Category for created itemsList of Odoo product.categoryAutomatically assigns new items to this category
Default Product Type (default_product_type)Stock trackabilityStorable (product) / Consumable (consu)Determines whether stock pickings track quantities
Default Income Account (default_income_account)Ledger revenue accountOdoo chart of accountsAllocates 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.template parent with multiple product.product child variants.
  • In Storefronts: Each variant holds its own unique SKU and barcode.
  • ERP Link resolves line items directly to child product.product records, 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.

Contact Support
    Products, SKUs & Barcode Mapping in Odoo | ERP Link Docs | ErpLink