diff --git a/l10n_it_edi_stamp/README.rst b/l10n_it_edi_stamp/README.rst new file mode 100644 index 000000000000..e2b1ead0ea2e --- /dev/null +++ b/l10n_it_edi_stamp/README.rst @@ -0,0 +1,89 @@ +============================================== +ITA - Fattura elettronica - Integrazione bollo +============================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:134a1b19d971fa6d0ee01dc4053e92c6fe8138dc62e2329e2942f421365c375b + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/16.0/l10n_it_fatturapa_out_stamp + :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-16-0/l10n-italy-16-0-l10n_it_fatturapa_out_stamp + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Modulo ponte tra emissione fatture elettroniche e imposta di bollo. + +Con questo modulo, l'elemento XML DatiBollo verrà correttamente +valorizzato. + +**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 +------- + +* Agile Business Group + +Contributors +------------ + +- Lorenzo Battistini +- Sergio Corato +- Giuseppe Borruso + +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_edi_stamp/__init__.py b/l10n_it_edi_stamp/__init__.py new file mode 100644 index 000000000000..b18eea379608 --- /dev/null +++ b/l10n_it_edi_stamp/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import models diff --git a/l10n_it_edi_stamp/__manifest__.py b/l10n_it_edi_stamp/__manifest__.py new file mode 100644 index 000000000000..f9106d547f5e --- /dev/null +++ b/l10n_it_edi_stamp/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2018 Lorenzo Battistini +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "ITA - Fattura elettronica - Integrazione bollo", + "summary": "Modulo ponte tra emissione fatture elettroniche e imposta di bollo", + "version": "17.5.0.0.1", + "development_status": "Beta", + "category": "Localization/Italy", + "website": "https://github.com/OCA/l10n-italy", + "author": "Agile Business Group, Odoo Community Association (OCA)", + "maintainers": ["eLBati"], + "license": "AGPL-3", + "auto_install": True, + "depends": [ + "l10n_it_account_stamp", + "l10n_it_edi", + ], + "data": [ + "views/account_move_views.xml", + ], +} diff --git a/l10n_it_edi_stamp/i18n/it.po b/l10n_it_edi_stamp/i18n/it.po new file mode 100644 index 000000000000..ea302f4209b2 --- /dev/null +++ b/l10n_it_edi_stamp/i18n/it.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_fatturapa_out_stamp +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-12-24 15:04+0000\n" +"PO-Revision-Date: 2022-03-04 11:54+0000\n" +"Last-Translator: Francesco Foresti \n" +"Language-Team: \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#~ msgid "SI" +#~ msgstr "SI" + +#~ msgid "Export E-invoice" +#~ msgstr "Esporta e-fattura" + +#~ msgid "Tax Stamp Product not set for company %s" +#~ msgstr "Prodotto imposta di bollo non impostato per l'azienda %s" diff --git a/l10n_it_edi_stamp/i18n/l10n_it_fatturapa_out_stamp.pot b/l10n_it_edi_stamp/i18n/l10n_it_fatturapa_out_stamp.pot new file mode 100644 index 000000000000..78d58d53fe07 --- /dev/null +++ b/l10n_it_edi_stamp/i18n/l10n_it_fatturapa_out_stamp.pot @@ -0,0 +1,13 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +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" diff --git a/l10n_it_edi_stamp/models/__init__.py b/l10n_it_edi_stamp/models/__init__.py new file mode 100644 index 000000000000..39eb721d5cfd --- /dev/null +++ b/l10n_it_edi_stamp/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import account_move diff --git a/l10n_it_edi_stamp/models/account_move.py b/l10n_it_edi_stamp/models/account_move.py new file mode 100644 index 000000000000..f5be32155ced --- /dev/null +++ b/l10n_it_edi_stamp/models/account_move.py @@ -0,0 +1,27 @@ +# Copyright 2024 Simone Rubino - Aion Tech +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class AccountMove (models.Model): + _inherit = "account.move" + + l10n_it_stamp_duty = fields.Float( + compute="_compute_l10n_it_stamp_duty", + store=True, + ) + + @api.depends( + "l10n_it_account_stamp_is_tax_stamp_applied", + "company_id.l10n_it_account_stamp_tax_stamp_product_id.list_price", + ) + def _compute_l10n_it_stamp_duty(self): + for invoice in self: + if invoice.state != "draft": + continue + elif invoice.l10n_it_account_stamp_is_tax_stamp_applied: + stamp_duty_amount = invoice.company_id.l10n_it_account_stamp_tax_stamp_product_id.list_price + else: + stamp_duty_amount = 0 + invoice.l10n_it_stamp_duty = stamp_duty_amount diff --git a/l10n_it_edi_stamp/pyproject.toml b/l10n_it_edi_stamp/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/l10n_it_edi_stamp/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_it_edi_stamp/readme/CONTRIBUTORS.md b/l10n_it_edi_stamp/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..80e22e259105 --- /dev/null +++ b/l10n_it_edi_stamp/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Lorenzo Battistini \<\> +- Sergio Corato \<\> +- Giuseppe Borruso \<\> diff --git a/l10n_it_edi_stamp/readme/DESCRIPTION.md b/l10n_it_edi_stamp/readme/DESCRIPTION.md new file mode 100644 index 000000000000..fe1c66426a34 --- /dev/null +++ b/l10n_it_edi_stamp/readme/DESCRIPTION.md @@ -0,0 +1,4 @@ +Modulo ponte tra emissione fatture elettroniche e imposta di bollo. + +Con questo modulo, l'elemento XML DatiBollo verrà correttamente +valorizzato. diff --git a/l10n_it_edi_stamp/static/description/icon.png b/l10n_it_edi_stamp/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/l10n_it_edi_stamp/static/description/icon.png differ diff --git a/l10n_it_edi_stamp/static/description/index.html b/l10n_it_edi_stamp/static/description/index.html new file mode 100644 index 000000000000..fe6611768bc2 --- /dev/null +++ b/l10n_it_edi_stamp/static/description/index.html @@ -0,0 +1,426 @@ + + + + + +ITA - Fattura elettronica - Integrazione bollo + + + +
+

ITA - Fattura elettronica - Integrazione bollo

+ + +

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

+

Modulo ponte tra emissione fatture elettroniche e imposta di bollo.

+

Con questo modulo, l’elemento XML DatiBollo verrà correttamente +valorizzato.

+

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

+
    +
  • Agile Business Group
  • +
+
+
+

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/l10n_it_edi_stamp/views/account_invoice_it_dati_bollo.xml b/l10n_it_edi_stamp/views/account_invoice_it_dati_bollo.xml new file mode 100644 index 000000000000..b4251b4bf669 --- /dev/null +++ b/l10n_it_edi_stamp/views/account_invoice_it_dati_bollo.xml @@ -0,0 +1,25 @@ + + + + + + diff --git a/l10n_it_edi_stamp/views/account_move_views.xml b/l10n_it_edi_stamp/views/account_move_views.xml new file mode 100644 index 000000000000..195da5d34319 --- /dev/null +++ b/l10n_it_edi_stamp/views/account_move_views.xml @@ -0,0 +1,16 @@ + + + + Add stamp to EDI form view + account.move + + + + + + + + diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 000000000000..0ac672a5a1d9 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,2 @@ +# https://github.com/OCA/l10n-italy/pull/4369 +odoo-addon-l10n_it_account_stamp @ git+https://github.com/OCA/l10n-italy.git@refs/pull/4369/head#subdirectory=l10n_it_account_stamp