Skip to content

Commit

Permalink
Merge PR #1796 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Sep 11, 2024
2 parents 542001f + 7f2d324 commit d041483
Show file tree
Hide file tree
Showing 13 changed files with 636 additions and 0 deletions.
80 changes: 80 additions & 0 deletions account_tax_one_vat_sale/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
========================
Account Tax One VAT Sale
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5a68fdcdbd3a0d5f7a16bdcc13424a59797bc92303723035d3bce3ff5e468919
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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_sale
: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_sale
: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 on a
salle order line. It uses and complements the module
account_tax_one_vat.

**Table of contents**

.. contents::
:local:

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_sale%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_sale>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_tax_one_vat_sale/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions account_tax_one_vat_sale/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 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 Sale",
"summary": "Allow only the selection of one VAT Tax in purchase order line",
"version": "16.0.1.0.0",
"author": "Camptocamp, Acsone, Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "account",
"depends": ["account_tax_one_vat", "sale"],
"data": [],
"website": "https://github.com/OCA/account-invoicing",
"installable": True,
}
21 changes: 21 additions & 0 deletions account_tax_one_vat_sale/i18n/account_tax_one_vat_sale.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_tax_one_vat_sale
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-02 16:09+0000\n"
"PO-Revision-Date: 2023-02-02 16:09+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_sale
#: model:ir.model,name:account_tax_one_vat_sale.model_sale_order_line
msgid "Sales Order Line"
msgstr ""
1 change: 1 addition & 0 deletions account_tax_one_vat_sale/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import sale_order_line
17 changes: 17 additions & 0 deletions account_tax_one_vat_sale/models/sale_order_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import api, models


class SaleOrderLine(models.Model):
_name = "sale.order.line"
_inherit = ["sale.order.line", "one.vat.mixin"]

@api.constrains("tax_id")
def _check_only_one_vat(self):
self._check_only_one_vat_tax_field("tax_id")

@api.onchange("tax_id")
def _onchange_only_one_vat(self):
return self._onchange_one_vat_tax_field("tax_id")
2 changes: 2 additions & 0 deletions account_tax_one_vat_sale/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Camptocamp SA
* Hughes Damry <hughes.damry@acsone.eu>
3 changes: 3 additions & 0 deletions account_tax_one_vat_sale/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module ensures that only one VAT tax can be selected on a
salle order line. It uses and complements the module
account_tax_one_vat.
Loading

0 comments on commit d041483

Please sign in to comment.