diff --git a/l10n_it_invoices_data_communication_fatturapa/README.rst b/l10n_it_invoices_data_communication_fatturapa/README.rst new file mode 100644 index 000000000000..b19e0ef9e760 --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/README.rst @@ -0,0 +1,84 @@ +========================================================= +ITA - Comunicazione dati fatture - Integrazione e-fattura +========================================================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/12.0/l10n_it_invoices_data_communication_fatturapa + :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-12-0/l10n-italy-12-0-l10n_it_invoices_data_communication_fatturapa + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/122/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +**Italiano** + +Modulo di collegamento tra l10n_it_invoices_data_communication ed i moduli di fatturazione elettronica. + +Permette di evitare di inserire nella comunicazione dati fatture (esterometro) le fatture elettroniche. + +**English** + +Bridge module between l10n_it_invoices_data_communication and e-invoice modules. + +It allows to prevent electronic invoices to be included in invoices data communication (esterometro). + +**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 smashing 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 +* Glauco Prina + +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-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_invoices_data_communication_fatturapa/__init__.py b/l10n_it_invoices_data_communication_fatturapa/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_it_invoices_data_communication_fatturapa/__manifest__.py b/l10n_it_invoices_data_communication_fatturapa/__manifest__.py new file mode 100644 index 000000000000..94a544792793 --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2019 Lorenzo Battistini +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "ITA - Comunicazione dati fatture - " "Integrazione e-fattura", + "summary": "Integrazione fatturazione elettronica e comunicazione dati " + 'fatture (c.d. "nuovo spesometro")', + "version": "14.0.1.0.0", + "category": "Hidden", + "author": "Agile Business Group, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/l10n-italy", + "license": "AGPL-3", + "depends": [ + "l10n_it_invoices_data_communication", + "l10n_it_fatturapa_in", + "l10n_it_fatturapa_out", + ], + "data": ["views/communication_view.xml"], + "installable": True, + "auto_install": True, +} diff --git a/l10n_it_invoices_data_communication_fatturapa/i18n/l10n_it_invoices_data_communication_fatturapa.pot b/l10n_it_invoices_data_communication_fatturapa/i18n/l10n_it_invoices_data_communication_fatturapa.pot new file mode 100644 index 000000000000..6bd6edb5a4ab --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/i18n/l10n_it_invoices_data_communication_fatturapa.pot @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_invoices_data_communication_fatturapa +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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_invoices_data_communication_fatturapa +#: model:ir.model.fields,field_description:l10n_it_invoices_data_communication_fatturapa.field_comunicazione_dati_iva__exclude_e_invoices +msgid "Exclude e-invoices" +msgstr "" + +#. module: l10n_it_invoices_data_communication_fatturapa +#: model:ir.model,name:l10n_it_invoices_data_communication_fatturapa.model_comunicazione_dati_iva +msgid "Invoices data communication" +msgstr "" + diff --git a/l10n_it_invoices_data_communication_fatturapa/models/__init__.py b/l10n_it_invoices_data_communication_fatturapa/models/__init__.py new file mode 100644 index 000000000000..99927e94ed66 --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/models/__init__.py @@ -0,0 +1 @@ +from . import communication diff --git a/l10n_it_invoices_data_communication_fatturapa/models/communication.py b/l10n_it_invoices_data_communication_fatturapa/models/communication.py new file mode 100644 index 000000000000..92aab668c35b --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/models/communication.py @@ -0,0 +1,18 @@ +from odoo import fields, models + + +class Communication(models.Model): + _inherit = "comunicazione.dati.iva" + exclude_e_invoices = fields.Boolean("Exclude e-invoices", default=True) + + def _get_fatture_emesse_domain(self): + domain = super(Communication, self)._get_fatture_emesse_domain() + if self.exclude_e_invoices: + domain.append(("fatturapa_attachment_out_id", "=", False)) + return domain + + def _get_fatture_ricevute_domain(self): + domain = super(Communication, self)._get_fatture_ricevute_domain() + if self.exclude_e_invoices: + domain.append(("fatturapa_attachment_in_id", "=", False)) + return domain diff --git a/l10n_it_invoices_data_communication_fatturapa/readme/CONTRIBUTORS.rst b/l10n_it_invoices_data_communication_fatturapa/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..dff168ed34db --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Lorenzo Battistini +* Glauco Prina diff --git a/l10n_it_invoices_data_communication_fatturapa/readme/DESCRIPTION.rst b/l10n_it_invoices_data_communication_fatturapa/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..3a28baeca748 --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/readme/DESCRIPTION.rst @@ -0,0 +1,11 @@ +**Italiano** + +Modulo di collegamento tra l10n_it_invoices_data_communication ed i moduli di fatturazione elettronica. + +Permette di evitare di inserire nella comunicazione dati fatture (esterometro) le fatture elettroniche. + +**English** + +Bridge module between l10n_it_invoices_data_communication and e-invoice modules. + +It allows to prevent electronic invoices to be included in invoices data communication (esterometro). diff --git a/l10n_it_invoices_data_communication_fatturapa/static/description/icon.png b/l10n_it_invoices_data_communication_fatturapa/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/l10n_it_invoices_data_communication_fatturapa/static/description/icon.png differ diff --git a/l10n_it_invoices_data_communication_fatturapa/static/description/index.html b/l10n_it_invoices_data_communication_fatturapa/static/description/index.html new file mode 100644 index 000000000000..d847e8662e33 --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/static/description/index.html @@ -0,0 +1,425 @@ + + + + + + +ITA - Comunicazione dati fatture - Integrazione e-fattura + + + +
+

ITA - Comunicazione dati fatture - Integrazione e-fattura

+ + +

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

+

Italiano

+

Modulo di collegamento tra l10n_it_invoices_data_communication ed i moduli di fatturazione elettronica.

+

Permette di evitare di inserire nella comunicazione dati fatture (esterometro) le fatture elettroniche.

+

English

+

Bridge module between l10n_it_invoices_data_communication and e-invoice modules.

+

It allows to prevent electronic invoices to be included in invoices data communication (esterometro).

+

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 smashing 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
  • +
  • Glauco Prina
  • +
+
+
+

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.

+

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_invoices_data_communication_fatturapa/views/communication_view.xml b/l10n_it_invoices_data_communication_fatturapa/views/communication_view.xml new file mode 100644 index 000000000000..566765fb9cf7 --- /dev/null +++ b/l10n_it_invoices_data_communication_fatturapa/views/communication_view.xml @@ -0,0 +1,17 @@ + + + + + view_communication_form_exclude_e_inv + comunicazione.dati.iva + + + + + + + + diff --git a/setup/l10n_it_invoices_data_communication_fatturapa/odoo/addons/l10n_it_invoices_data_communication_fatturapa b/setup/l10n_it_invoices_data_communication_fatturapa/odoo/addons/l10n_it_invoices_data_communication_fatturapa new file mode 120000 index 000000000000..9f3c8487ad6f --- /dev/null +++ b/setup/l10n_it_invoices_data_communication_fatturapa/odoo/addons/l10n_it_invoices_data_communication_fatturapa @@ -0,0 +1 @@ +../../../../l10n_it_invoices_data_communication_fatturapa \ No newline at end of file diff --git a/setup/l10n_it_invoices_data_communication_fatturapa/setup.py b/setup/l10n_it_invoices_data_communication_fatturapa/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/l10n_it_invoices_data_communication_fatturapa/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)