Skip to content

Commit

Permalink
Merge pull request #38 from akretion/11.0-mig-product_harmonized_system
Browse files Browse the repository at this point in the history
11.0 mig product harmonized system
  • Loading branch information
luc-demeyer committed Aug 20, 2018
2 parents 2fc15c1 + 826b125 commit ebf5f20
Show file tree
Hide file tree
Showing 15 changed files with 771 additions and 0 deletions.
69 changes: 69 additions & 0 deletions product_harmonized_system/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.. 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


============================================
Harmonized System Codes (and National Codes)
============================================

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 code are usually required on the Proforma invoices that are attached to the packages that are shipped abroad.

This module also handle 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.


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

This module is NOT compatible with the *report_intrastat* module from the official addons.


Usage
=====

To create H.S. codes, go to the menu *Sales > Configuration > Product Categories and Attributes > H.S. Codes*.

Then you will be able to set the H.S. code on an 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*).

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/227/11.0


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

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/intrastat/issues>`_. In case
of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and
welcomed feedback.

Credits
=======

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

* Alexis de Lattre, Akretion <alexis.delattre@akretion.com>
* Luc De Meyer, Noviat <info@noviat.com>
* Kumar Aberer, brain-tec AG <kumar.aberer@braintec-group.com>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
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
30 changes: 30 additions & 0 deletions product_harmonized_system/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2018 brain-tec AG (http://www.braintec-group.com)
# Copyright 2011-2016 Akretion (http://www.akretion.com)
# Copyright 2009-2016 Noviat (http://www.noviat.com)
# @author Kumar Aberer <kumar.aberer@braintec-group.com>
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# @author Luc de Meyer <info@noviat.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Product Harmonized System Codes',
'version': '11.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)',
'depends': ['product'],
'conflicts': ['report_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,
}
81 changes: 81 additions & 0 deletions product_harmonized_system/demo/product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2011-2016 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
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_17" model="product.product">
<field name="hs_code_id" ref="84717050" />
<field name="origin_country_id" ref="base.sg" />
<field name="weight">0.75</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>
156 changes: 156 additions & 0 deletions product_harmonized_system/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_harmonized_system
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-07-16 13:11+0000\n"
"PO-Revision-Date: 2015-07-16 13:11+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_harmonized_system
#: field:hs.code,active:0
msgid "Active"
msgstr "Actif"

#. module: product_harmonized_system
#: model:hs.code,description:product_harmonized_system.84715000
msgid "Automatic data-processing machines (computers)"
msgstr ""

#. module: product_harmonized_system
#: help:hs.code,local_code:0
msgid "Code used for the national Import/Export declaration. e.g. Intrastat for the European Union"
msgstr "Code utilisé pour la déclaration nationale d'import/export, par exemple la DEB pour la France"

#. module: product_harmonized_system
#: field:hs.code,company_id:0
msgid "Company"
msgstr "Société"

#. module: product_harmonized_system
#: field:product.template,origin_country_id:0
msgid "Country of Origin"
msgstr "Pays d'origine"

#. module: product_harmonized_system
#: help:product.template,origin_country_id:0
msgid "Country of origin of the product i.e. product 'made in ____'. If you have different countries of origin depending on the supplier from which you purchased the product, leave this field empty and use the equivalent field on the 'product supplier info' form."
msgstr ""

#. module: product_harmonized_system
#: field:hs.code,create_uid:0
msgid "Created by"
msgstr "Créé par"

#. module: product_harmonized_system
#: field:hs.code,create_date:0
msgid "Created on"
msgstr "Créé le"

#. module: product_harmonized_system
#: field:hs.code,description:0
msgid "Description"
msgstr "Description"

#. module: product_harmonized_system
#: field:hs.code,display_name:0
msgid "Display Name"
msgstr "Nom affiché"

#. module: product_harmonized_system
#: model:ir.model,name:product_harmonized_system.model_hs_code
#: field:product.category,hs_code_id:0
#: field:product.template,hs_code_id:0
msgid "H.S. Code"
msgstr "Code S.H."

#. module: product_harmonized_system
#: view:hs.code:product_harmonized_system.hs_code_form
msgid "HS Code"
msgstr "Code S.H."

#. module: product_harmonized_system
#: view:hs.code:product_harmonized_system.hs_code_tree
#: model:ir.actions.act_window,name:product_harmonized_system.hs_code_act
#: model:ir.ui.menu,name:product_harmonized_system.hs_code_menu
msgid "HS Codes"
msgstr "Codes S.H."

#. module: product_harmonized_system
#: help:product.category,hs_code_id:0
msgid "Harmonised System Code. If this code is not set on the product itself, it will be read here, on the related product category."
msgstr ""

#. module: product_harmonized_system
#: help:product.template,hs_code_id:0
msgid "Harmonised System Code. Nomenclature is available from the World Customs Organisation, see http://www.wcoomd.org/. You can leave this field empty and configure the H.S. code on the product category."
msgstr ""

#. module: product_harmonized_system
#: field:hs.code,id:0
msgid "ID"
msgstr "ID"

#. module: product_harmonized_system
#: view:product.category:product_harmonized_system.product_category_form_view
msgid "Import/Export Properties"
msgstr "Propriétés pour l'import/export"

#. module: product_harmonized_system
#: field:hs.code,write_uid:0
msgid "Last Updated by"
msgstr "Dernière modification par"

#. module: product_harmonized_system
#: field:hs.code,write_date:0
msgid "Last Updated on"
msgstr "Dernière modification le"

#. module: product_harmonized_system
#: field:hs.code,local_code:0
msgid "Local Code"
msgstr "Code local"

#. module: product_harmonized_system
#: model:hs.code,description:product_harmonized_system.85340090
msgid "Printed circuits"
msgstr ""

#. module: product_harmonized_system
#: model:ir.model,name:product_harmonized_system.model_product_category
msgid "Product Category"
msgstr "Catégorie d'articles"

#. module: product_harmonized_system
#: model:ir.model,name:product_harmonized_system.model_product_template
msgid "Product Template"
msgstr "Modèle d'article"

#. module: product_harmonized_system
#: view:hs.code:product_harmonized_system.hs_code_search
msgid "Search HS Codes"
msgstr "Recherche dans les codes S.H."

#. module: product_harmonized_system
#: help:hs.code,description:0
msgid "Short text description of the H.S. category"
msgstr "Courte description de la catégorie H.S."

#. module: product_harmonized_system
#: model:hs.code,description:product_harmonized_system.84717050
msgid "Storage units"
msgstr ""

#. module: product_harmonized_system
#: sql_constraint:hs.code:0
msgid "This code already exists for this company !"
msgstr "Ce code existe déjà pour cette société !"

Loading

0 comments on commit ebf5f20

Please sign in to comment.