Product Supplier Code in Purchase
This module adds to the purchase order line the supplier code defined in the product.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Shows the supplier's own product code on each purchase order line, filled automatically from the vendor information stored on the product, and lets buyers edit it before sending the order.
This module adds a "supplier code" column to purchase order lines, so buyers can see the reference the vendor uses for the product directly on the order.
- The code is filled in automatically when the vendor and the product are set on a line. It looks for the vendor's product reference stored on the product's vendor list, first for the exact product, then for the product template, and copies it onto the line.
- The field stays editable, so a buyer can correct or complete the code manually if needed.
- The column appears in the purchase order form (inside the order lines list, right after the product) and in the purchase order line list view.
- When Odoo adds the vendor to the product's vendor list from a purchase order, the supplier code entered on the line is also saved back onto the vendor information of the product, so it is remembered for next time. If the user has no permission to change the product, this saving is simply skipped.
It touches the purchase order and purchase order line models and the vendor information on products. No new menus or reports are added.
Depends on
Models and fields (1)
- purchase.order.line · extends an existing modelproduct_supplier_code
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 7 confirmed, 2 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/purchase-workflow.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0To use this module:
- Go to 'Purchase' and open a Purchase Order.
- If the vendor has defined some code for any purchase order line they will be displayed in the line under the column 'Product Supplier Code'.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.