Skip to content

Commit

Permalink
Merge 71f6eec into ca2093d
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Oct 23, 2019
2 parents ca2093d + 71f6eec commit c483721
Show file tree
Hide file tree
Showing 32 changed files with 2,354 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .isort.cfg
Expand Up @@ -9,4 +9,4 @@ line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=
known_third_party=setuptools
103 changes: 103 additions & 0 deletions account_tax_unece/README.rst
@@ -0,0 +1,103 @@
=================
Account Tax UNECE
=================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fcommunity--data--files-lightgray.png?logo=github
:target: https://github.com/OCA/community-data-files/tree/12.0/account_tax_unece
:alt: OCA/community-data-files
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/community-data-files-12-0/community-data-files-12-0-account_tax_unece
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/101/12.0
:alt: Try me on Runbot

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

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).

**Table of contents**

.. contents::
:local:

Configuration
=============

#. Go to the menu *Accounting > Configuration > Accounting > Taxes*
#. Set the field *UNECE Type Code* (the value should be *VAT* for most of your
taxes).
#. Set the field *UNECE Category Code*.

There are localization modules that fill this information for specific chart
of accounts, so this step shouldn't be needed if installed.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/community-data-files/issues/new?body=module:%20account_tax_unece%0Aversion:%2012.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
~~~~~~~

* Akretion

Contributors
~~~~~~~~~~~~

* Alexis de Lattre <alexis.delattre@akretion.com>
* Andrea Stirpe <a.stirpe@onestein.nl>
* Levent Karakaş
* Pedro M. Baeza

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.

This module is part of the `OCA/community-data-files <https://github.com/OCA/community-data-files/tree/12.0/account_tax_unece>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions account_tax_unece/__init__.py
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
22 changes: 22 additions & 0 deletions account_tax_unece/__manifest__.py
@@ -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": "13.0.1.0.0",
"category": "Accounting & Finance",
"license": "AGPL-3",
"summary": "UNECE nomenclature for taxes",
"author": "Akretion,Odoo Community Association (OCA)",
"website": "http://www.akretion.com",
"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,
}
32 changes: 32 additions & 0 deletions account_tax_unece/data/unece_date.xml
@@ -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>
155 changes: 155 additions & 0 deletions account_tax_unece/data/unece_tax_categ.xml
@@ -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 comments on commit c483721

Please sign in to comment.