diff --git a/l10n_it_withholding_tax_payment_order/README.rst b/l10n_it_withholding_tax_payment_order/README.rst new file mode 100644 index 000000000000..eff55e490f79 --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/README.rst @@ -0,0 +1,89 @@ +============================================== +ITA - Ritenute d'acconto - Ordini di pagamento +============================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:f826d7192b1bb49336c0d30e7b2f3210e25d189baeb2fe4e461942e45aa3e516 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fl10n--italy-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_withholding_tax_payment_order + :alt: OCA/l10n-italy +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_withholding_tax_payment_order + :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-italy&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Make ``l10n_it_withholding_tax`` and ``account_payment_order`` work +together, setting the correct amount (Net To Pay) in payment order +lines. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Innovyou + +Contributors +------------ + +- Lorenzo Battistini https://www.innovyou.co/ +- Ooops404 https://www.ooops404.com/ + + - Eduard Brahas eduard@ooops404.com + +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. + +.. |maintainer-eLBati| image:: https://github.com/eLBati.png?size=40px + :target: https://github.com/eLBati + :alt: eLBati + +Current `maintainer `__: + +|maintainer-eLBati| + +This module is part of the `OCA/l10n-italy `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_it_withholding_tax_payment_order/__init__.py b/l10n_it_withholding_tax_payment_order/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_it_withholding_tax_payment_order/__manifest__.py b/l10n_it_withholding_tax_payment_order/__manifest__.py new file mode 100644 index 000000000000..b929cbcaecea --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2024 Lorenzo Battistini +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "ITA - Ritenute d'acconto - Ordini di pagamento", + "summary": "Integrazione Ritenute d'acconto e Ordini di pagamento", + "version": "14.0.1.0.0", + "development_status": "Beta", + "category": "Hidden", + "website": "https://github.com/OCA/l10n-italy", + "author": "Innovyou, Odoo Community Association (OCA)", + "maintainers": ["eLBati"], + "license": "AGPL-3", + "application": False, + "installable": True, + "auto_install": True, + "depends": [ + "l10n_it_withholding_tax", + "account_payment_order", + ], + "data": [], +} diff --git a/l10n_it_withholding_tax_payment_order/i18n/l10n_it_withholding_tax_payment_order.pot b/l10n_it_withholding_tax_payment_order/i18n/l10n_it_withholding_tax_payment_order.pot new file mode 100644 index 000000000000..14be924b6ddd --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/i18n/l10n_it_withholding_tax_payment_order.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_withholding_tax_payment_order +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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_it_withholding_tax_payment_order +#: model:ir.model,name:l10n_it_withholding_tax_payment_order.model_account_move_line +msgid "Journal Item" +msgstr "" diff --git a/l10n_it_withholding_tax_payment_order/models/__init__.py b/l10n_it_withholding_tax_payment_order/models/__init__.py new file mode 100644 index 000000000000..8795b3bea648 --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/models/__init__.py @@ -0,0 +1 @@ +from . import account_move_line diff --git a/l10n_it_withholding_tax_payment_order/models/account_move_line.py b/l10n_it_withholding_tax_payment_order/models/account_move_line.py new file mode 100644 index 000000000000..83d35a9dfb51 --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/models/account_move_line.py @@ -0,0 +1,11 @@ +from odoo import models + + +class MoveLine(models.Model): + _inherit = "account.move.line" + + def _prepare_payment_line_vals(self, payment_order): + vals = super()._prepare_payment_line_vals(payment_order) + if self.withholding_tax_amount: + vals["amount_currency"] -= self.withholding_tax_amount + return vals diff --git a/l10n_it_withholding_tax_payment_order/readme/CONTRIBUTORS.md b/l10n_it_withholding_tax_payment_order/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..dd650ebf77d2 --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Lorenzo Battistini https://www.innovyou.co/ +- Ooops404 https://www.ooops404.com/ + - Eduard Brahas eduard@ooops404.com diff --git a/l10n_it_withholding_tax_payment_order/readme/DESCRIPTION.md b/l10n_it_withholding_tax_payment_order/readme/DESCRIPTION.md new file mode 100644 index 000000000000..82f4ca0bd733 --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +Make `l10n_it_withholding_tax` and `account_payment_order` work together, setting the +correct amount (Net To Pay) in payment order lines. diff --git a/l10n_it_withholding_tax_payment_order/static/description/icon.png b/l10n_it_withholding_tax_payment_order/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/l10n_it_withholding_tax_payment_order/static/description/icon.png differ diff --git a/l10n_it_withholding_tax_payment_order/static/description/index.html b/l10n_it_withholding_tax_payment_order/static/description/index.html new file mode 100644 index 000000000000..fac61342caee --- /dev/null +++ b/l10n_it_withholding_tax_payment_order/static/description/index.html @@ -0,0 +1,431 @@ + + + + + +ITA - Ritenute d'acconto - Ordini di pagamento + + + +
+

ITA - Ritenute d’acconto - Ordini di pagamento

+ + +

Beta License: AGPL-3 OCA/l10n-italy Translate me on Weblate Try me on Runboat

+

Make l10n_it_withholding_tax and account_payment_order work +together, setting the correct amount (Net To Pay) in payment order +lines.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Innovyou
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

eLBati

+

This module is part of the OCA/l10n-italy project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/setup/l10n_it_withholding_tax_payment_order/odoo/addons/l10n_it_withholding_tax_payment_order b/setup/l10n_it_withholding_tax_payment_order/odoo/addons/l10n_it_withholding_tax_payment_order new file mode 120000 index 000000000000..bc4ee06abb8f --- /dev/null +++ b/setup/l10n_it_withholding_tax_payment_order/odoo/addons/l10n_it_withholding_tax_payment_order @@ -0,0 +1 @@ +../../../../l10n_it_withholding_tax_payment_order \ No newline at end of file diff --git a/setup/l10n_it_withholding_tax_payment_order/setup.py b/setup/l10n_it_withholding_tax_payment_order/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/l10n_it_withholding_tax_payment_order/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)