Product Harmonized System Codes - Delivery
The OCA module product_harmonized_system adds a many2one field hs_code_id on product templates that points to an H.S. Code object. But the stock_delivery module from the official addons adds a char field hs_code on product templates, which has the same purpose, but we can't use it because we need structured data for H.S. codes. This module hides the hs_code field added by the stock_delivery module, to avoid confusion.
Since Odoo v16, the stock_delivery module also adds a many2one field country_of_origin, which is similar to the many2one field origin_country_id of the OCA module product_harmonized_system. This module also hides the country_of_origin field added by the stock_delivery module.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Hides the simple HS code and country of origin fields added by the delivery module on product forms, so users only see the structured Harmonized System code and origin country from the dedicated module.
This module is a small compatibility bridge between the delivery features and the structured Harmonized System (H.S.) code data. The delivery module adds two simple fields on products: a free-text H.S. code and a country of origin. The dedicated H.S. code module provides richer, structured equivalents instead.
Because having both sets of fields visible is confusing, this module makes the delivery module's versions invisible on the product form. It does this by hiding the whole traceability group in that form view, and by hiding the hs_code and country_of_origin fields themselves.
Behind the scenes, the two simple fields are kept but are now automatically filled from the structured data: hs_code is linked to the code of the selected H.S. code record, and country_of_origin is linked to the selected origin country. Both values are stored, so they remain available for other features such as delivery documents or reports that expect them.
There are no new menus, buttons, reports or scheduled actions. The change is purely about which fields users see and how the two sets of data stay in sync. It installs automatically when both the delivery and H.S. code modules are present.
Depends on
Models and fields (1)
- product.template · extends an existing modelhs_code, country_of_origin
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: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/intrastat-extrastat.
terminal Installation and usage
No verified informationInstallation 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.