-
-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by sbidoul
- Loading branch information
Showing
25 changed files
with
1,382 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
=================== | ||
Account Tax One VAT | ||
=================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:5267b359cd7a1fa9cf781a36c0f425bdd55fcc1ad03f0564d05e3327d4987ba4 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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%2Faccount--invoicing-lightgray.png?logo=github | ||
:target: https://github.com/OCA/account-invoicing/tree/16.0/account_tax_one_vat | ||
:alt: OCA/account-invoicing | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_tax_one_vat | ||
: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/account-invoicing&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module ensures that only one VAT tax can be selected because | ||
the invoices (at least in Belgium) must have one and only one | ||
VAT tax per line. So this module comes to complete the OCA module | ||
account_invoice_tax_required which ensures a line has a tax. | ||
It deals with taxes on these objects: | ||
* account move line (onchange warning only) | ||
* product template for both customer and supplier (constraint only) | ||
|
||
The module adds two computed fields on product - vat_id and | ||
vat (vat_id.name) - which might be set if the restriction is on. | ||
|
||
It also adds a boolean field in the account.tax model to indicates the | ||
tax is a VAT. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
Use one of these paths to reach the setting: | ||
* *Settings* - *Invoicing* - *Taxes* | ||
* *Invoicing* - *Configuration* - *Settings* - *Taxes* | ||
|
||
Once there find the 'One VAT tax only' option that you can | ||
check/uncheck. | ||
|
||
For a specific tax you can find the option to indicates it's | ||
a VAT under the Advanced Options in the form view. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20account_tax_one_vat%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 | ||
~~~~~~~ | ||
|
||
* Camptocamp | ||
* Acsone | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Camptocamp SA | ||
* Hughes Damry <hughes.damry@acsone.eu> | ||
|
||
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/account-invoicing <https://github.com/OCA/account-invoicing/tree/16.0/account_tax_one_vat>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2020 Camptocamp SA | ||
# Copyright 2023 ACSONE SA/NV | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) | ||
|
||
{ | ||
"name": "Account Tax One VAT", | ||
"summary": "Allow only the selection of one VAT Tax.", | ||
"version": "16.0.1.0.0", | ||
"author": "Camptocamp, Acsone, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"category": "account", | ||
"depends": ["account"], | ||
"data": [ | ||
"views/res_config_settings_views.xml", | ||
"views/account_tax_views.xml", | ||
], | ||
"website": "https://github.com/OCA/account-invoicing", | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_tax_one_vat | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0+e\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-03-10 17:20+0000\n" | ||
"PO-Revision-Date: 2023-03-10 17:20+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: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/account_move.py:0 | ||
#, python-format | ||
msgid "" | ||
"%(message)s\n" | ||
"%(errors)s" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_one_vat_mixin | ||
msgid "Abstract the methods needed to ensure only one VAT tax is selected." | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,help:account_tax_one_vat.field_res_company__account_tax_one_vat | ||
#: model:ir.model.fields,help:account_tax_one_vat.field_res_config_settings__account_tax_one_vat | ||
#: model_terms:ir.ui.view,arch_db:account_tax_one_vat.res_config_settings_view_form | ||
msgid "Avoid the selection of multiple VAT taxes." | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/account_move.py:0 | ||
#, python-format | ||
msgid "Invoice has a line %s with more than one vat tax" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_account_tax_template__is_vat | ||
msgid "Is a VAT tax" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_account_move | ||
msgid "Journal Entry" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_account_move_line | ||
msgid "Journal Item" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0 | ||
#, python-format | ||
msgid "More than one VAT tax selected!" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0 | ||
#, python-format | ||
msgid "Multiple taxes of type VAT are selected. Only one is allowed." | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_res_company__account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_res_config_settings__account_tax_one_vat | ||
msgid "One VAT tax only" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_product_template | ||
msgid "Product" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_account_tax | ||
msgid "Tax" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_account_tax_template | ||
msgid "Templates for Taxes" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_product__vat_id | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_template__vat_id | ||
#: model_terms:ir.ui.view,arch_db:account_tax_one_vat.view_account_tax_search | ||
msgid "VAT" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_product__vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_template__vat | ||
msgid "VAT name" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_account_tax__is_vat | ||
msgid "VAT tax" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0 | ||
#, python-format | ||
msgid "You selected more than one tax of type VAT." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_tax_one_vat | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0+e\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-03-10 17:20+0000\n" | ||
"PO-Revision-Date: 2023-03-10 17:20+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: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/account_move.py:0 | ||
#, python-format | ||
msgid "" | ||
"%(message)s\n" | ||
"%(errors)s" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_one_vat_mixin | ||
msgid "Abstract the methods needed to ensure only one VAT tax is selected." | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,help:account_tax_one_vat.field_res_company__account_tax_one_vat | ||
#: model:ir.model.fields,help:account_tax_one_vat.field_res_config_settings__account_tax_one_vat | ||
#: model_terms:ir.ui.view,arch_db:account_tax_one_vat.res_config_settings_view_form | ||
msgid "Avoid the selection of multiple VAT taxes." | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/account_move.py:0 | ||
#, python-format | ||
msgid "Invoice has a line %s with more than one vat tax" | ||
msgstr "Facture dont la ligne %s avec plus d'une TVA" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_account_tax_template__is_vat | ||
msgid "Is a VAT tax" | ||
msgstr "Est une TVA" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_account_move | ||
msgid "Journal Entry" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_account_move_line | ||
msgid "Journal Item" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0 | ||
#, python-format | ||
msgid "More than one VAT tax selected!" | ||
msgstr "Plusieurs taxes de type TVA sélectionnées !" | ||
|
||
#. module: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0 | ||
#, python-format | ||
msgid "Multiple taxes of type VAT are selected. Only one is allowed." | ||
msgstr "" | ||
"Plusieurs taxes de type TVA sont sélectionnées. Seulement une est " | ||
"autorisée." | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_res_company__account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_res_config_settings__account_tax_one_vat | ||
msgid "One VAT tax only" | ||
msgstr "Une seule taxe de type TVA" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_product_template | ||
msgid "Product" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_account_tax | ||
msgid "Tax" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model,name:account_tax_one_vat.model_account_tax_template | ||
msgid "Templates for Taxes" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_product__vat_id | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_template__vat_id | ||
#: model_terms:ir.ui.view,arch_db:account_tax_one_vat.view_account_tax_search | ||
msgid "VAT" | ||
msgstr "TVA" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_product__vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_template__vat | ||
msgid "VAT name" | ||
msgstr "TVA" | ||
|
||
#. module: account_tax_one_vat | ||
#: model:ir.model.fields,field_description:account_tax_one_vat.field_account_tax__is_vat | ||
msgid "VAT tax" | ||
msgstr "" | ||
|
||
#. module: account_tax_one_vat | ||
#. odoo-python | ||
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0 | ||
#, python-format | ||
msgid "You selected more than one tax of type VAT." | ||
msgstr "" | ||
"Vous avez sélectionné plusieurs taxes de type TVA pour une ligne d'achat, " | ||
"cela semble erroné." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from . import one_vat_mixin | ||
from . import account_tax_template | ||
from . import account_tax | ||
from . import account_move | ||
from . import account_move_line | ||
from . import product_template | ||
from . import res_company | ||
from . import res_config_settings |
Oops, something went wrong.