Skip to content

Commit

Permalink
Merge PR #266 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Mar 14, 2024
2 parents 98bc42f + 3e6604e commit de45535
Show file tree
Hide file tree
Showing 26 changed files with 2,209 additions and 0 deletions.
126 changes: 126 additions & 0 deletions product_harmonized_system/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
===============================
Product Harmonized System Codes
===============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:afd00899a20aac3c96a9b21fbcfc0c4a66f1617290ff92124a6b6987e5d9c975
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fintrastat--extrastat-lightgray.png?logo=github
:target: https://github.com/OCA/intrastat-extrastat/tree/17.0/product_harmonized_system
:alt: OCA/intrastat-extrastat
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/intrastat-extrastat-17-0/intrastat-extrastat-17-0-product_harmonized_system
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/intrastat-extrastat&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module contains the objects for Harmonised System Codes (H.S.
codes). The full nomenclature is available from the World Customs
Organisation <http://www.wcoomd.org/>. These codes are usually required
on the Proforma invoices that are attached to the packages that are
shipped abroad.

This module also handles the local/national extensions to the H.S.
codes. The import of the full nomenclature is not provided by this
module; it should be provided by localization modules.

You will also be able to configure the *country of origin* of a product,
which is often required on the proforma invoice for the customs.

This module should be usefull for all companies that export physical
goods abroad. This module is also used by the Intrastat modules for the
European Union, cf the *intrastat_product* module.

**Table of contents**

.. contents::
:local:

Installation
============

This module is NOT compatible with the *account_intrastat* module from
Odoo Enterprise.

Usage
=====

As this module only depends on the *product* module and that module
doesn't provide any menu entry, this module lacks a menu entry for H.S.
Codes. A menu entry for H.S. codes is provided by the module
*product_harmonized_system_stock*.

Once the H.S. codes are created, you will be able to set the H.S. code
on a product (under the *Information* tab) or on a product category. On
the product form, you will also be able to set the *Country of Origin*
of a product (for example, if the product is *made in China*, select
*China* as *Country of Origin*).

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/intrastat-extrastat/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/intrastat-extrastat/issues/new?body=module:%20product_harmonized_system%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* brain-tec AG
* Akretion
* Noviat

Contributors
------------

- Alexis de Lattre, Akretion <[email protected]>
- Luc De Meyer, Noviat <[email protected]>
- Kumar Aberer, brain-tec AG <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via
.. |maintainer-luc-demeyer| image:: https://github.com/luc-demeyer.png?size=40px
:target: https://github.com/luc-demeyer
:alt: luc-demeyer

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-alexis-via| |maintainer-luc-demeyer|

This module is part of the `OCA/intrastat-extrastat <https://github.com/OCA/intrastat-extrastat/tree/17.0/product_harmonized_system>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_harmonized_system/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
31 changes: 31 additions & 0 deletions product_harmonized_system/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2018-2022 brain-tec AG (http://www.braintec-group.com)
# Copyright 2011-2022 Akretion (http://www.akretion.com)
# Copyright 2009-2022 Noviat (http://www.noviat.com)
# Copyright 2022 Tecnativa - Víctor Martínez
# @author Benjamin Henquet <[email protected]>
# @author Kumar Aberer <[email protected]>
# @author Alexis de Lattre <[email protected]>
# @author Luc de Meyer <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Harmonized System Codes",
"version": "17.0.1.0.0",
"category": "Reporting",
"license": "AGPL-3",
"summary": "Base module for Product Import/Export reports",
"author": "brain-tec AG, Akretion, Noviat, Odoo Community Association (OCA)",
"maintainers": ["alexis-via", "luc-demeyer"],
"website": "https://github.com/OCA/intrastat-extrastat",
"depends": ["product"],
"excludes": ["account_intrastat"],
"data": [
"security/product_hs_security.xml",
"security/ir.model.access.csv",
"views/hs_code.xml",
"views/product_category.xml",
"views/product_template.xml",
],
"demo": ["demo/product_demo.xml"],
"installable": True,
}
60 changes: 60 additions & 0 deletions product_harmonized_system/demo/product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2011-2022 Akretion France (http://www.akretion.com/)
@author Alexis de Lattre <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">
<record id="84715000" model="hs.code">
<field name="local_code">84715000</field>
<field name="description">Automatic data-processing machines (computers)</field>
</record>
<record id="84717050" model="hs.code">
<field name="local_code">84717050</field>
<field name="description">Storage units</field>
</record>
<record id="85340090" model="hs.code">
<field name="local_code">85340090</field>
<field name="description">Printed circuits</field>
</record>
<record id="product.product_product_3" model="product.product">
<field name="hs_code_id" ref="84715000" />
<field name="origin_country_id" ref="base.tw" />
<field name="weight">8.7</field>
</record>
<record id="product.product_product_4" model="product.product">
<field name="hs_code_id" ref="84715000" />
<field name="origin_country_id" ref="base.cn" />
<field name="weight">1.1</field>
</record>
<record id="product.product_product_5" model="product.product">
<field name="hs_code_id" ref="84715000" />
<field name="origin_country_id" ref="base.cn" />
<field name="weight">8.2</field>
</record>
<record id="product.product_product_13" model="product.product">
<field name="hs_code_id" ref="84717050" />
<field name="origin_country_id" ref="base.sg" />
<field name="weight">0.01</field>
</record>
<record id="product.product_product_16" model="product.product">
<field name="hs_code_id" ref="84717050" />
<field name="origin_country_id" ref="base.sg" />
<field name="weight">0.67</field>
</record>
<record id="product.product_product_20" model="product.product">
<field name="hs_code_id" ref="85340090" />
<field name="origin_country_id" ref="base.tw" />
<field name="weight">1.05</field>
</record>
<record id="product.product_product_22" model="product.product">
<field name="hs_code_id" ref="85340090" />
<field name="origin_country_id" ref="base.tw" />
<field name="weight">0.3</field>
</record>
<record id="product.product_product_25" model="product.product">
<field name="hs_code_id" ref="84715000" />
<field name="origin_country_id" ref="base.be" />
<field name="weight">3.3</field>
</record>
</odoo>
Loading

0 comments on commit de45535

Please sign in to comment.