Product - HS Code
Turns the plain HS code text field into a managed HS Code master-data table with automatic online enrichment.
What you get
- HS Code master data - a new
product.hs_codemodel with name, code (unique), description, customs tax rate, trade restrictions, source URL and archive flag, managed from a list and form view under Inventory configuration - Linked field on products - products get an
hs_code_idselection field that is kept two-way in sync with Odoo's standardhs_codetext field; typing an unknown code automatically creates the matching HS Code record - Online enrichment - an Enrich button (also run automatically for auto-created codes) fetches the code's name, description and TARIC trade restrictions from tariffnumber.com and stores them on the record
- Product overview per code - each HS Code shows a product counter with a click-through to the list of products classified under it, plus a group-by HS Code filter in the product search view
- Bulk linking tools - server actions on HS Codes and products connect existing free-text HS codes to their master-data records, and an install-time routine backfills the links for the whole catalogue
Configuration and use
Install the module and open a product's Inventory tab: next to the standard HS Code text field you can now pick an HS Code record. Existing free-text codes are linked to records automatically on installation, and any new code you type creates and enriches a record on the fly.
Maintain the code table under Inventory configuration - HS Code, where you can store your customs tax rate per code, review scraped descriptions and restrictions, and jump to all products using a given code.
Technical note
Enrichment fetches public data from https://www.tariffnumber.com/ using the Python 'requests' and 'beautifulsoup4' libraries; an internet connection is required for that feature only.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) • Inventory (stock) |
| Lines of code | 381 |
| Technical Name |
product_field_hs_code |
| License | OPL-1 |
| Website | https://www.rlsd.dk/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module