Skip to content

Commit

Permalink
Merge PR #417 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by thomaspaulb
  • Loading branch information
OCA-git-bot committed Apr 23, 2024
2 parents 8caca40 + a59db25 commit 6658d44
Show file tree
Hide file tree
Showing 21 changed files with 1,090 additions and 0 deletions.
133 changes: 133 additions & 0 deletions l10n_nl_account_tax_unece/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
=========================
L10n NL Account Tax UNECE
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:18b184dc471320c31d3ad3b244904a1626e9b3f49eb23675ac1f0a3bbd3ac9fc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--netherlands-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-netherlands/tree/16.0/l10n_nl_account_tax_unece
:alt: OCA/l10n-netherlands
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-netherlands-16-0/l10n-netherlands-16-0-l10n_nl_account_tax_unece
: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/l10n-netherlands&target_branch=16.0
:alt: Try me on Runboat

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

This module will auto-configure the values *UNECE Tax Type* and *UNECE Tax Category* on taxes that come from the *l10n_nl* module.

Both the values will also be set in the template of the tax accounts.
This will be useful in case of setting new companies with the Dutch chart of accounts in a multi-company environment.

**Table of contents**

.. contents::
:local:

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

This module will be installed automatically if modules ``l10n_nl`` and ``account_tax_unece`` are installed.

Usage
=====

#. Simply install the module to set the values *UNECE Tax Type* and *UNECE Tax Category* on existing taxes that come from the *l10n_nl* module.
#. If you create a new Dutch company and set its chart of accounts ( with the one that comes from *l10n_nl*), the newly created taxes will also get the values *UNECE Tax Type* and *UNECE Tax Category* set.

Changelog
=========

14.0.1.1.0
~~~~~~~~~~

* Update unece tax tags according to NLCIUS
Source: forumstandaardisatie.nl/open-standaarden/nlcius

13.0.1.0.0
~~~~~~~~~~

* Porting to V13

12.0.1.0.0
~~~~~~~~~~

* Porting to V12

11.0.1.1.0
~~~~~~~~~~

* Add support for tax codes 9%, introduced in Odoo 11.0 with `commit <https://github.com/odoo/odoo/commit/06ad641b0a978296e3eaef40f54157360e97075e>`_)

11.0.1.0.0
~~~~~~~~~~

* Porting to V11

10.0.1.0.0
~~~~~~~~~~

* Initial release.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-netherlands/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/l10n-netherlands/issues/new?body=module:%20l10n_nl_account_tax_unece%0Aversion:%2016.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
~~~~~~~

* Onestein

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

* Andrea Stirpe <[email protected]>
* bosd <[email protected]>

Other credits
~~~~~~~~~~~~~

* This module, expecially the `post_install` script, is based on the job made by
* Akretion (Alexis de Lattre <[email protected]>)
Module: OCA/l10n-france/l10n_fr_account_tax_unece
Link: https://github.com/OCA/l10n-france/tree/10.0/l10n_fr_account_tax_unece

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/l10n-netherlands <https://github.com/OCA/l10n-netherlands/tree/16.0/l10n_nl_account_tax_unece>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions l10n_nl_account_tax_unece/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .post_install import set_unece_on_taxes
17 changes: 17 additions & 0 deletions l10n_nl_account_tax_unece/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2017-2023 Onestein (<https://www.onestein.eu>)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

{
"name": "L10n NL Account Tax UNECE",
"summary": "Auto-configure UNECE params on Dutch taxes",
"version": "16.0.1.0.0",
"category": "Localization",
"author": "Onestein, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-netherlands",
"license": "LGPL-3",
"depends": ["l10n_nl", "account_tax_unece"],
"data": ["data/account_tax_template.xml"],
"post_init_hook": "set_unece_on_taxes",
"installable": True,
"auto_install": True,
}
199 changes: 199 additions & 0 deletions l10n_nl_account_tax_unece/data/account_tax_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-2019 Onestein (<https://www.onestein.eu>)
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
<odoo noupdate="0">
<!-- Binnen Nederland -->
<!-- Verkoop BTW -->
<record id="l10n_nl.btw_0" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_z')" />
</record>
<record id="l10n_nl.btw_6" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_9" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_21" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_overig" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<!-- Verkoop BTW Diensten -->
<record id="l10n_nl.btw_0_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_z')" />
</record>
<record id="l10n_nl.btw_6_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_9_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_21_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_overig_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<!--Inkoop BTW -->
<record id="l10n_nl.btw_6_buy" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_6_buy_incl" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_9_buy" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_9_buy_incl" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_21_buy" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_21_buy_incl" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_overig_buy" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<!--Inkoop BTW diensten -->
<record id="l10n_nl.btw_6_buy_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_9_buy_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_21_buy_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_overig_buy_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<!--BTW verlegd-->
<record id="l10n_nl.btw_verk_0" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_ae')" />
</record>
<record id="l10n_nl.btw_ink_0" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_ae')" />
</record>
<!-- Binnen de EU -->
<!-- BTW inkoop -->
<record id="l10n_nl.btw_I_6" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_I_9" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_I_21" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_I_overig" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_k')" />
</record>
<record id="l10n_nl.btw_X0_ABC_levering" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_k')" />
</record>
<!-- BTW verkoop -->
<record id="l10n_nl.btw_X0_producten" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_e')" />
</record>
<record id="l10n_nl.btw_X0_diensten" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_e')" />
</record>
<record id="l10n_nl.btw_X2" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_e')" />
</record>
<!-- BTW inkoop diensten -->
<record id="l10n_nl.btw_I_6_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_I_9_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_I_21_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_I_overig_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_k')" />
</record>
<!-- Buiten de EU -->
<!-- BTW inkoop -->
<record id="l10n_nl.btw_E1" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_E1_9" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_E2" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_E_overig" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<!-- BTW Verkoop -->
<record id="l10n_nl.btw_X1" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_g')" />
</record>
<record id="l10n_nl.btw_X3" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_g')" />
</record>
<!-- BTW inkoop diensten -->
<record id="l10n_nl.btw_E1_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_E1_d_9" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_E2_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
<record id="l10n_nl.btw_E_overig_d" model="account.tax.template">
<field name="unece_type_id" eval="ref('account_tax_unece.tax_type_vat')" />
<field name="unece_categ_id" eval="ref('account_tax_unece.tax_categ_s')" />
</record>
</odoo>
34 changes: 34 additions & 0 deletions l10n_nl_account_tax_unece/i18n/l10n_nl_account_tax_unece.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_nl_account_tax_unece
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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: l10n_nl_account_tax_unece
#: model:ir.model,name:l10n_nl_account_tax_unece.model_res_company
msgid "Companies"
msgstr ""

#. module: l10n_nl_account_tax_unece
#: model:ir.model.fields,field_description:l10n_nl_account_tax_unece.field_res_company__display_name
msgid "Display Name"
msgstr ""

#. module: l10n_nl_account_tax_unece
#: model:ir.model.fields,field_description:l10n_nl_account_tax_unece.field_res_company__id
msgid "ID"
msgstr ""

#. module: l10n_nl_account_tax_unece
#: model:ir.model.fields,field_description:l10n_nl_account_tax_unece.field_res_company____last_update
msgid "Last Modified on"
msgstr ""
Loading

0 comments on commit 6658d44

Please sign in to comment.