UBL Integration
parent
f7e8107291
commit
cc676c3f06
|
|
@ -0,0 +1,61 @@
|
|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
||||
:target: https://www.gnu.org/licenses/agpl
|
||||
:alt: License: AGPL-3
|
||||
|
||||
=============
|
||||
Account UNECE
|
||||
=============
|
||||
|
||||
This module adds two fields *UNECE Type Code* and *UNECE Category Code* on taxes to allow the use of the standards written by the `United Nations Economic Commission for Europe <http://www.unece.org>`_ (which has 56 members states in Europe, America and Central Asia, cf `Wikipedia <https://en.wikipedia.org/wiki/United_Nations_Economic_Commission_for_Europe>`_):
|
||||
|
||||
* the UNECE Tax Type code is defined in the `DataElement 5153 <http://www.unece.org/trade/untdid/d97b/uncl/uncl5153.htm>`_,
|
||||
* the UNECE Tax Category Code is defined in the `DataElement 5305 <http://www.unece.org/trade/untdid/d97a/uncl/uncl5305.htm>`_.
|
||||
|
||||
This codification is part of the UNCL (United Nations Code List). This codification is used for example in the two main international standards for electronic invoicing:
|
||||
|
||||
* `Cross Industry Invoice <http://tfig.unece.org/contents/cross-industry-invoice-cii.htm>`_ (CII),
|
||||
* `Universal Business Language <http://ubl.xml.org/>`_ (UBL).
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
Go to the menu *Accounting > Configuration > Accounting > Taxes* and configure the *UNECE Type Code* (the value should be *VAT* for most of your taxes) and the *UNECE Category Code*.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/101/11.0
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/community-data-files/issues>`_. In case of trouble, please
|
||||
check there if your issue has already been reported. If you spotted it first,
|
||||
help us smash it by providing detailed and welcomed feedback.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
* Andrea Stirpe <a.stirpe@onestein.nl>
|
||||
|
||||
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.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import models
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 2016 Akretion (http://www.akretion.com)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
|
||||
{
|
||||
'name': 'Account Tax UNECE',
|
||||
'version': '11.0.1.1.2',
|
||||
'category': 'Accounting & Finance',
|
||||
'license': 'AGPL-3',
|
||||
'summary': 'UNECE nomenclature for taxes',
|
||||
'author': 'Akretion,Odoo Community Association (OCA)',
|
||||
"website": "https://github.com/OCA/community-data-files",
|
||||
'depends': ['account', 'base_unece'],
|
||||
'data': [
|
||||
'views/account_tax.xml',
|
||||
'views/account_tax_template.xml',
|
||||
'data/unece_tax_type.xml',
|
||||
'data/unece_tax_categ.xml',
|
||||
'data/unece_date.xml',
|
||||
],
|
||||
'installable': True,
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo noupdate="0">
|
||||
|
||||
<!-- unece.code.list UNTDID 2475
|
||||
Source : https://www.unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred2475.htm
|
||||
The beta 1.1 version of Factur-X was using UNTDID 2005, but they changed it in
|
||||
September 2017 before the publication of the final version of Factur-X -->
|
||||
|
||||
<!--
|
||||
I don't create the full nomenclature in Odoo for the moment, but only those that
|
||||
are used in the Factur-X standard. Feel free to add more if you need.
|
||||
In Factur-X, there are 2 possibilities for VAT on invoice date
|
||||
("TVA sur les débits" in French): code 5 or 29. We use 5 in Odoo for
|
||||
invoice generation and have a hack in the module
|
||||
account_invoice_import_factur-x to remap 29 on 5. -->
|
||||
|
||||
<record id="date_5" model="unece.code.list">
|
||||
<field name="type">date</field>
|
||||
<field name="code">5</field>
|
||||
<field name="name">Date of invoice</field>
|
||||
<field name="description">Payment time reference is date of invoice.</field>
|
||||
</record>
|
||||
|
||||
<record id="date_72" model="unece.code.list">
|
||||
<field name="type">date</field>
|
||||
<field name="code">72</field>
|
||||
<field name="name">Payment date</field>
|
||||
<field name="description">Date when a payment was made.</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,155 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo noupdate="0">
|
||||
|
||||
<!-- unece.code.list
|
||||
Source : https://www.unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5305.htm -->
|
||||
|
||||
<record id="tax_categ_a" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">A</field>
|
||||
<field name="name">Mixed tax rate</field>
|
||||
<field name="description">Code specifying that the rate is based on mixed tax.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_aa" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">AA</field>
|
||||
<field name="name">Lower rate</field>
|
||||
<field name="description">Tax rate is lower than standard rate.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_ab" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">AB</field>
|
||||
<field name="name">Exempt for resale</field>
|
||||
<field name="description">A tax category code indicating the item is tax exempt when the item is bought for future resale.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_ac" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">AC</field>
|
||||
<field name="name">Value Added Tax (VAT) not now due for payment</field>
|
||||
<field name="description">A code to indicate that the Value Added Tax (VAT) amount which is due on the current invoice is to be paid on receipt of a separate VAT payment request.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_ad" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">AD</field>
|
||||
<field name="name">Value Added Tax (VAT) due from a previous invoice</field>
|
||||
<field name="description">A code to indicate that the Value Added Tax (VAT) amount of a previous invoice is to be paid.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_ae" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">AE</field>
|
||||
<field name="name">VAT Reverse Charge</field>
|
||||
<field name="description">Code specifying that the standard VAT rate is levied from the invoicee.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_b" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">B</field>
|
||||
<field name="name">Transferred (VAT)</field>
|
||||
<field name="description">VAT not to be paid to the issuer of the invoice but directly to relevant tax authority.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_c" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">C</field>
|
||||
<field name="name">Duty paid by supplier</field>
|
||||
<field name="description">Duty associated with shipment of goods is paid by the supplier; customer receives goods with duty paid.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_d" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">D</field>
|
||||
<field name="name">Value Added Tax (VAT) margin scheme - travel agents</field>
|
||||
<field name="description">Indication that the VAT margin scheme for travel agents is applied.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_e" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">E</field>
|
||||
<field name="name">Exempt from tax</field>
|
||||
<field name="description">Code specifying that taxes are not applicable.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_f" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">F</field>
|
||||
<field name="name">Value Added Tax (VAT) margin scheme - second-hand goods</field>
|
||||
<field name="description">Indication that the VAT margin scheme for second-hand goods is applied.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_g" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">G</field>
|
||||
<field name="name">Free export item, tax not charged</field>
|
||||
<field name="description">Code specifying that the item is free export and taxes are not charged.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_h" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">H</field>
|
||||
<field name="name">Higher rate</field>
|
||||
<field name="description">Code specifying a higher rate of duty or tax or fee.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_i" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">I</field>
|
||||
<field name="name">Value Added Tax (VAT) margin scheme - works of art</field>
|
||||
<field name="description">Indication that the VAT margin scheme for works of art is applied.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_j" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">J</field>
|
||||
<field name="name">Value Added Tax (VAT) margin scheme - collector's items and antiques</field>
|
||||
<field name="description">Indication that the VAT margin scheme for collector's items and antiques is applied.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_k" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">K</field>
|
||||
<field name="name">VAT exempt for EEA intra-community supply of goods and services</field>
|
||||
<field name="description">A tax category code indicating the item is VAT exempt due to an intra-community supply in the European Economic Area.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_l" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">L</field>
|
||||
<field name="name">Canary Islands general indirect tax</field>
|
||||
<field name="description">Impuesto General Indirecto Canario (IGIC) is an indirect tax levied on goods and services supplied in the Canary Islands (Spain) by traders and professionals, as well as on import of goods.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_m" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">M</field>
|
||||
<field name="name">Tax for production, services and importation in Ceuta and Melilla</field>
|
||||
<field name="description">Impuesto sobre la Producción, los Servicios y la Importación (IPSI) is an indirect municipal tax, levied on the production, processing and import of all kinds of movable tangible property, the supply of services and the transfer of immovable property located in the cities of Ceuta and Melilla.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_o" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">O</field>
|
||||
<field name="name">Services outside scope of tax</field>
|
||||
<field name="description">Code specifying that taxes are not applicable to the services.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_s" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">S</field>
|
||||
<field name="name">Standard rate</field>
|
||||
<field name="description">Code specifying the standard rate.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_categ_z" model="unece.code.list">
|
||||
<field name="type">tax_categ</field>
|
||||
<field name="code">Z</field>
|
||||
<field name="name">Zero rated goods</field>
|
||||
<field name="description">Code specifying that the goods are at a zero rate.</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,386 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo noupdate="0">
|
||||
|
||||
<!-- unece.code.list
|
||||
Source : https://www.unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5153.htm -->
|
||||
|
||||
<record id="tax_type_aaa" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAA</field>
|
||||
<field name="name">Petroleum tax</field>
|
||||
<field name="description">A tax levied on the volume of petroleum being transacted.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aab" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAB</field>
|
||||
<field name="name">Provisional countervailing duty cash</field>
|
||||
<field name="description">Countervailing duty paid in cash prior to a formal finding of subsidization by Customs.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aac" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAC</field>
|
||||
<field name="name">Provisional countervailing duty bond</field>
|
||||
<field name="description">Countervailing duty paid by posting a bond during an investigation period prior to a formal decision on subsidization by Customs.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aad" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAD</field>
|
||||
<field name="name">Tobacco tax</field>
|
||||
<field name="description">A tax levied on tobacco products.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aae" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAE</field>
|
||||
<field name="name">Energy fee</field>
|
||||
<field name="description">General fee or tax for the use of energy.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aaf" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAF</field>
|
||||
<field name="name">Coffee tax</field>
|
||||
<field name="description">A tax levied specifically on coffee products.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aag" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAG</field>
|
||||
<field name="name">Harmonised sales tax, Canadian</field>
|
||||
<field name="description">A harmonized sales tax consisting of a goods and service tax, a Canadian provincial sales tax and, as applicable, a Quebec sales tax which is recoverable.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aah" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAH</field>
|
||||
<field name="name">Quebec sales tax</field>
|
||||
<field name="description">A sales tax charged within the Canadian province of Quebec which is recoverable.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aai" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAI</field>
|
||||
<field name="name">Canadian provincial sales tax</field>
|
||||
<field name="description">A sales tax charged within Canadian provinces which is non-recoverable.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aaj" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAJ</field>
|
||||
<field name="name">Tax on replacement part</field>
|
||||
<field name="description">A tax levied on a replacement part, where the original part is returned.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aak" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAK</field>
|
||||
<field name="name">Mineral oil tax</field>
|
||||
<field name="description">Tax that is levied specifically on products containing mineral oil.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aal" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAL</field>
|
||||
<field name="name">Special tax</field>
|
||||
<field name="description">To indicate a special type of tax.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_aam" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">AAM</field>
|
||||
<field name="name">Insurance tax</field>
|
||||
<field name="description">A tax levied specifically on insurances.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_add" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">ADD</field>
|
||||
<field name="name">Anti-dumping duty</field>
|
||||
<field name="description">Duty applied to goods ruled to have been dumped in an import market at a price lower than that in the exporter's domestic market.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_bol" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">BOL</field>
|
||||
<field name="name">Stamp duty (Imposta di Bollo)</field>
|
||||
<field name="description">Tax required in Italy, which may be fixed or graduated in various circumstances (e.g. VAT exempt documents or bank receipts).</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_cap" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">CAP</field>
|
||||
<field name="name">Agricultural levy</field>
|
||||
<field name="description">Levy imposed on agricultural products where there is a difference between the selling price between trading countries.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_car" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">CAR</field>
|
||||
<field name="name">Car tax</field>
|
||||
<field name="description">A tax that is levied on the value of the automobile.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_coc" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">COC</field>
|
||||
<field name="name">Paper consortium tax (Italy)</field>
|
||||
<field name="description"></field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_cst" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">CST</field>
|
||||
<field name="name">Commodity specific tax</field>
|
||||
<field name="description">Tax related to a specified commodity, e.g. illuminants, salts.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_cud" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">CUD</field>
|
||||
<field name="name">Customs duty</field>
|
||||
<field name="description">Duties laid down in the Customs tariff, to which goods are liable on entering or leaving the Customs territory (CCC).</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_cvd" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">CVD</field>
|
||||
<field name="name">Countervailing duty</field>
|
||||
<field name="description">A duty on imported goods applied for compensate for subsidies granted to those goods in the exporting country.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_env" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">ENV</field>
|
||||
<field name="name">Environmental tax</field>
|
||||
<field name="description">Tax assessed for funding or assuring environmental protection or clean-up.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_exc" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">EXC</field>
|
||||
<field name="name">Excise duty</field>
|
||||
<field name="description">Customs or fiscal authorities code to identify a specific or ad valorem levy on a specific commodity, applied either domestically or at time of importation.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_exp" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">EXP</field>
|
||||
<field name="name">Agricultural export rebate</field>
|
||||
<field name="description">Monetary rebate given to the seller in certain circumstances when agricultural products are exported.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_fet" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">FET</field>
|
||||
<field name="name">Federal excise tax</field>
|
||||
<field name="description">Tax levied by the federal government on the manufacture of specific items.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_fre" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">FRE</field>
|
||||
<field name="name">Free</field>
|
||||
<field name="description">No tax levied.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_gcn" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">GCN</field>
|
||||
<field name="name">General construction tax</field>
|
||||
<field name="description">General tax for construction.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_gst" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">GST</field>
|
||||
<field name="name">Goods and services tax</field>
|
||||
<field name="description">Tax levied on the final consumption of goods and services throughout the production and distribution chain.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_ill" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">ILL</field>
|
||||
<field name="name">Illuminants tax</field>
|
||||
<field name="description">Tax of illuminants.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_imp" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">IMP</field>
|
||||
<field name="name">Import tax</field>
|
||||
<field name="description">Tax assessed on imports.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_ind" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">IND</field>
|
||||
<field name="name">Individual tax</field>
|
||||
<field name="description">A tax levied based on an individual's ability to pay.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_lac" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">LAC</field>
|
||||
<field name="name">Business license fee</field>
|
||||
<field name="description">Government assessed charge for permit to do business.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_lcn" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">LCN</field>
|
||||
<field name="name">Local construction tax</field>
|
||||
<field name="description">Local tax for construction.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_ldp" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">LDP</field>
|
||||
<field name="name">Light dues payable</field>
|
||||
<field name="description">Fee levied on a vessel to pay for port navigation lights.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_loc" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">LOC</field>
|
||||
<field name="name">Local sales tax</field>
|
||||
<field name="description">Assessment charges on sale of goods or services by city, borough country or other taxing authorities below state or provincial level.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_lst" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">LST</field>
|
||||
<field name="name">Lust tax</field>
|
||||
<field name="description">Tax imposed for clean-up of leaky underground storage tanks.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_mca" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">MCA</field>
|
||||
<field name="name">Monetary compensatory amount</field>
|
||||
<field name="description">Levy on Common Agricultural Policy (European Union) goods used to compensate for fluctuating currencies between member states.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_mcd" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">MCD</field>
|
||||
<field name="name">Miscellaneous cash deposit</field>
|
||||
<field name="description">Duty paid and held on deposit, by Customs, during an investigation period prior to a final decision being made on any aspect related to imported goods (except valuation) by Customs.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_oth" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">OTH</field>
|
||||
<field name="name">Other taxes</field>
|
||||
<field name="description">Unspecified, miscellaneous tax charges.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_pdb" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">PDB</field>
|
||||
<field name="name">Provisional duty bond</field>
|
||||
<field name="description">Anti-dumping duty paid by posting a bond during an investigation period prior to a formal decision on dumping by Customs.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_pdc" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">PDC</field>
|
||||
<field name="name">Provisional duty cash</field>
|
||||
<field name="description">Anti-dumping duty paid in cash prior to a formal finding of dumping by Customs.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_prf" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">PRF</field>
|
||||
<field name="name">Preference duty</field>
|
||||
<field name="description">Duties laid down in the Customs tariff, to which goods are liable on entering or leaving the Customs territory falling under a preferential regime such as Generalised System of Preferences (GSP).</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_scn" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">SCN</field>
|
||||
<field name="name">Special construction tax</field>
|
||||
<field name="description">Special tax for construction.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_sss" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">SSS</field>
|
||||
<field name="name">Shifted social securities</field>
|
||||
<field name="description">Social securities share of the invoice amount to be paid directly to the social securities collector.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_stt" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">STT</field>
|
||||
<field name="name">State/provincial sales tax</field>
|
||||
<field name="description">All applicable sale taxes by authorities at the state or provincial level, below national level.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_sup" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">SUP</field>
|
||||
<field name="name">Suspended duty</field>
|
||||
<field name="description">Duty suspended or deferred from payment.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_sur" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">SUR</field>
|
||||
<field name="name">Surtax</field>
|
||||
<field name="description">A tax or duty applied on and in addition to existing duties and taxes.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_swt" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">SWT</field>
|
||||
<field name="name">Shifted wage tax</field>
|
||||
<field name="description">Wage tax share of the invoice amount to be paid directly to the tax collector's office).</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_tac" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">TAC</field>
|
||||
<field name="name">Alcohol mark tax</field>
|
||||
<field name="description">A tax levied based on the type of alcohol being obtained.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_tot" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">TOT</field>
|
||||
<field name="name">Total</field>
|
||||
<field name="description">The summary amount of all taxes.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_tox" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">TOX</field>
|
||||
<field name="name">Turnover tax</field>
|
||||
<field name="description">Tax levied on the total sales/turnover of a corporation.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_tta" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">TTA</field>
|
||||
<field name="name">Tonnage taxes</field>
|
||||
<field name="description">Tax levied based on the vessel's net tonnage.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_vad" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">VAD</field>
|
||||
<field name="name">Valuation deposit</field>
|
||||
<field name="description">Duty paid and held on deposit, by Customs, during an investigation period prior to a formal decision on valuation of the goods being made.</field>
|
||||
</record>
|
||||
|
||||
<record id="tax_type_vat" model="unece.code.list">
|
||||
<field name="type">tax_type</field>
|
||||
<field name="code">VAT</field>
|
||||
<field name="name">Value added tax</field>
|
||||
<field name="description">A tax on domestic or imported goods applied to the value added at each stage in the production/distribution cycle.</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_tax_unece
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \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: account_tax_unece
|
||||
#: model:ir.model.fields,help:account_tax_unece.field_account_tax_template_unece_categ_id
|
||||
#: model:ir.model.fields,help:account_tax_unece.field_account_tax_unece_categ_id
|
||||
msgid "Select the Tax Category Code of the official nomenclature of the United Nations Economic Commission for Europe (UNECE), DataElement 5305"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model.fields,help:account_tax_unece.field_account_tax_template_unece_type_id
|
||||
#: model:ir.model.fields,help:account_tax_unece.field_account_tax_unece_type_id
|
||||
msgid "Select the Tax Type Code of the official nomenclature of the United Nations Economic Commission for Europe (UNECE), DataElement 5153"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model.fields,help:account_tax_unece.field_account_tax_unece_due_date_id
|
||||
msgid "Select the due date of that tax from the official nomenclature of the United Nations Economic Commission for Europe (UNECE), DataElement 2005. For a sale VAT tax, it is the date on which that VAT is due to the fiscal administration. For a purchase VAT tax, it is the date on which that VAT can be deducted."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model,name:account_tax_unece.model_account_tax
|
||||
msgid "Tax"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model,name:account_tax_unece.model_account_tax_template
|
||||
msgid "Templates for Taxes"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model.fields,field_description:account_tax_unece.field_account_tax_unece_categ_code
|
||||
msgid "UNECE Category Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model.fields,field_description:account_tax_unece.field_account_tax_unece_due_date_id
|
||||
msgid "UNECE Due Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model.fields,field_description:account_tax_unece.field_account_tax_unece_due_date_code
|
||||
msgid "UNECE Due Date Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model.fields,field_description:account_tax_unece.field_account_tax_template_unece_categ_id
|
||||
#: model:ir.model.fields,field_description:account_tax_unece.field_account_tax_unece_categ_id
|
||||
msgid "UNECE Tax Category"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model.fields,field_description:account_tax_unece.field_account_tax_template_unece_type_id
|
||||
#: model:ir.model.fields,field_description:account_tax_unece.field_account_tax_unece_type_id
|
||||
msgid "UNECE Tax Type"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model.fields,field_description:account_tax_unece.field_account_tax_unece_type_code
|
||||
msgid "UNECE Type Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.model,name:account_tax_unece.model_unece_code_list
|
||||
msgid "UNECE nomenclatures"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_tax_unece
|
||||
#: model:ir.ui.view,arch_db:account_tax_unece.view_tax_template_form
|
||||
msgid "Unece"
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import unece_code_list
|
||||
from . import account_tax
|
||||
from . import account_tax_template
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
# Copyright 2016-2017 Akretion (http://www.akretion.com)
|
||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class AccountTax(models.Model):
|
||||
_inherit = 'account.tax'
|
||||
|
||||
unece_type_id = fields.Many2one(
|
||||
'unece.code.list', string='UNECE Tax Type',
|
||||
domain=[('type', '=', 'tax_type')], ondelete='restrict',
|
||||
help="Select the Tax Type Code of the official "
|
||||
"nomenclature of the United Nations Economic "
|
||||
"Commission for Europe (UNECE), DataElement 5153")
|
||||
unece_type_code = fields.Char(
|
||||
related='unece_type_id.code', store=True, readonly=True,
|
||||
string='UNECE Type Code')
|
||||
unece_categ_id = fields.Many2one(
|
||||
'unece.code.list', string='UNECE Tax Category',
|
||||
domain=[('type', '=', 'tax_categ')], ondelete='restrict',
|
||||
help="Select the Tax Category Code of the official "
|
||||
"nomenclature of the United Nations Economic "
|
||||
"Commission for Europe (UNECE), DataElement 5305")
|
||||
unece_categ_code = fields.Char(
|
||||
related='unece_categ_id.code', store=True, readonly=True,
|
||||
string='UNECE Category Code')
|
||||
unece_due_date_id = fields.Many2one(
|
||||
'unece.code.list', string='UNECE Due Date',
|
||||
domain=[('type', '=', 'date')], ondelete='restrict',
|
||||
help="Select the due date of that tax from the official "
|
||||
"nomenclature of the United Nations Economic "
|
||||
"Commission for Europe (UNECE), DataElement 2005. For a "
|
||||
"sale VAT tax, it is the date on which that VAT is due to the "
|
||||
"fiscal administration. For a purchase VAT tax, it is the date "
|
||||
"on which that VAT can be deducted.")
|
||||
unece_due_date_code = fields.Char(
|
||||
related='unece_due_date_id.code', store=True, readonly=True,
|
||||
string='UNECE Due Date Code')
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
# Copyright 2017 Onestein (<http://www.onestein.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountTaxTemplate(models.Model):
|
||||
_inherit = 'account.tax.template'
|
||||
|
||||
unece_type_id = fields.Many2one(
|
||||
'unece.code.list', string='UNECE Tax Type',
|
||||
domain=[('type', '=', 'tax_type')],
|
||||
help="Select the Tax Type Code of the official "
|
||||
"nomenclature of the United Nations Economic "
|
||||
"Commission for Europe (UNECE), DataElement 5153"
|
||||
)
|
||||
unece_categ_id = fields.Many2one(
|
||||
'unece.code.list', string='UNECE Tax Category',
|
||||
domain=[('type', '=', 'tax_categ')],
|
||||
help="Select the Tax Category Code of the official "
|
||||
"nomenclature of the United Nations Economic "
|
||||
"Commission for Europe (UNECE), DataElement 5305"
|
||||
)
|
||||
|
||||
def _get_tax_vals(self, company, tax_template_to_tax):
|
||||
self.ensure_one()
|
||||
res = super(AccountTaxTemplate, self)._get_tax_vals(
|
||||
company,
|
||||
tax_template_to_tax
|
||||
)
|
||||
res['unece_type_id'] = self.unece_type_id.id or False
|
||||
res['unece_categ_id'] = self.unece_categ_id.id or False
|
||||
return res
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright 2016-2017 Akretion (http://www.akretion.com)
|
||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class UneceCodeList(models.Model):
|
||||
_inherit = 'unece.code.list'
|
||||
|
||||
type = fields.Selection(selection_add=[
|
||||
('tax_type', 'Tax Types (UNCL 5153)'),
|
||||
('tax_categ', 'Tax Categories (UNCL 5305)'),
|
||||
('date', 'Date, Time or Period Qualifier (UNTDID 2005)'),
|
||||
])
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2016-2017 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>
|
||||
|
||||
|
||||
<record id="view_tax_form" model="ir.ui.view">
|
||||
<field name="name">unece.account.tax.form</field>
|
||||
<field name="model">account.tax</field>
|
||||
<field name="inherit_id" ref="account.view_tax_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="advanced_booleans" position="inside">
|
||||
<field name="unece_type_id" context="{'default_type': 'tax_type'}"/>
|
||||
<field name="unece_categ_id" context="{'default_type': 'tax_categ'}"/>
|
||||
<field name="unece_due_date_id" context="{'default_type': 'date'}"/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2017 Onestein (<http://www.onestein.eu>)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="view_tax_template_form" model="ir.ui.view">
|
||||
<field name="model">account.tax.template</field>
|
||||
<field name="inherit_id" ref="account.view_account_tax_template_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<notebook position="inside">
|
||||
<page string="Unece">
|
||||
<group name="unece">
|
||||
<group>
|
||||
<field name="unece_type_id" />
|
||||
<field name="unece_categ_id" />
|
||||
</group>
|
||||
<group>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Reference in New Issue