diff --git a/l10n_it_accompanying_invoice/README.rst b/l10n_it_accompanying_invoice/README.rst index 9dbc18a1d82e..a6d2b68d84b6 100644 --- a/l10n_it_accompanying_invoice/README.rst +++ b/l10n_it_accompanying_invoice/README.rst @@ -17,24 +17,26 @@ ITA - Fattura accompagnatoria :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_accompanying_invoice + :target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_accompanying_invoice :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_accompanying_invoice + :target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_accompanying_invoice :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=12.0 + :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| **Italiano** -Questo modulo consente di stampare una fattura accompagnatoria, per visualizzare i dati di *Informazioni di spedizione* nella fattura. +Questo modulo consente di stampare una fattura accompagnatoria, per +visualizzare i dati di *Informazioni di spedizione* nella fattura. **English** -This module allows you to print an accompanying invoice, to view *Shipping Information* data inside the invoice. +This module allows you to print an accompanying invoice, to view +*Shipping Information* data inside the invoice. **Table of contents** @@ -46,7 +48,8 @@ Usage Valorizzare i campi del foglio *Informazioni di spedizione*. -Usare l'azione *Fattura accompagnatoria* all'interno della lista di azioni *Stampa*, nella vista delle fatture. +Usare l'azione *Fattura accompagnatoria* all'interno della lista di +azioni *Stampa*, nella vista delle fatture. Bug Tracker =========== @@ -54,7 +57,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -62,18 +65,18 @@ Credits ======= Authors -~~~~~~~ +------- * Agile Business Group Contributors -~~~~~~~~~~~~ +------------ -* Lorenzo Battistini -* Simone Vanin +- Lorenzo Battistini +- Simone Vanin Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -85,6 +88,6 @@ 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. +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_accompanying_invoice/__manifest__.py b/l10n_it_accompanying_invoice/__manifest__.py index 6c0d2026caa9..19fb49ff3b41 100644 --- a/l10n_it_accompanying_invoice/__manifest__.py +++ b/l10n_it_accompanying_invoice/__manifest__.py @@ -4,13 +4,12 @@ { "name": "ITA - Fattura accompagnatoria", - 'summary': 'Stampa della fattura accompagnatoria', + "summary": "Stampa della fattura accompagnatoria", "version": "12.0.1.0.0", "category": "Accounting", "website": "https://github.com/OCA/l10n-italy" - "/tree/12.0/l10n_it_accompanying_invoice", - "author": "Agile Business Group, " - "Odoo Community Association (OCA)", + "/tree/12.0/l10n_it_accompanying_invoice", + "author": "Agile Business Group, " "Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, "installable": True, diff --git a/l10n_it_accompanying_invoice/models/account_invoice.py b/l10n_it_accompanying_invoice/models/account_invoice.py index 0437fbb3cc3c..96bfe036eb5d 100644 --- a/l10n_it_accompanying_invoice/models/account_invoice.py +++ b/l10n_it_accompanying_invoice/models/account_invoice.py @@ -7,8 +7,7 @@ class AccountInvoice(models.Model): - - _inherit = 'account.invoice' + _inherit = "account.invoice" # we need this to be able to call l10n_it_ddt.delivery_data - note = fields.Text('Notes', readonly=True, related="comment") - date_done = fields.Datetime(string='Shipping Date') + note = fields.Text("Notes", readonly=True, related="comment") + date_done = fields.Datetime(string="Shipping Date") diff --git a/l10n_it_accompanying_invoice/pyproject.toml b/l10n_it_accompanying_invoice/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/l10n_it_accompanying_invoice/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_it_accompanying_invoice/readme/CONTRIBUTORS.md b/l10n_it_accompanying_invoice/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..d7c530ae5329 --- /dev/null +++ b/l10n_it_accompanying_invoice/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- Lorenzo Battistini \<\> +- Simone Vanin \<\> diff --git a/l10n_it_accompanying_invoice/readme/CONTRIBUTORS.rst b/l10n_it_accompanying_invoice/readme/CONTRIBUTORS.rst deleted file mode 100644 index 6938187b127a..000000000000 --- a/l10n_it_accompanying_invoice/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,2 +0,0 @@ -* Lorenzo Battistini -* Simone Vanin diff --git a/l10n_it_accompanying_invoice/readme/DESCRIPTION.rst b/l10n_it_accompanying_invoice/readme/DESCRIPTION.md similarity index 56% rename from l10n_it_accompanying_invoice/readme/DESCRIPTION.rst rename to l10n_it_accompanying_invoice/readme/DESCRIPTION.md index 3b80d0dde44f..3a25570f1c6c 100644 --- a/l10n_it_accompanying_invoice/readme/DESCRIPTION.rst +++ b/l10n_it_accompanying_invoice/readme/DESCRIPTION.md @@ -1,7 +1,9 @@ **Italiano** -Questo modulo consente di stampare una fattura accompagnatoria, per visualizzare i dati di *Informazioni di spedizione* nella fattura. +Questo modulo consente di stampare una fattura accompagnatoria, per +visualizzare i dati di *Informazioni di spedizione* nella fattura. **English** -This module allows you to print an accompanying invoice, to view *Shipping Information* data inside the invoice. +This module allows you to print an accompanying invoice, to view +*Shipping Information* data inside the invoice. diff --git a/l10n_it_accompanying_invoice/readme/USAGE.rst b/l10n_it_accompanying_invoice/readme/USAGE.md similarity index 72% rename from l10n_it_accompanying_invoice/readme/USAGE.rst rename to l10n_it_accompanying_invoice/readme/USAGE.md index c1c1d28e3cd6..39834696eb61 100644 --- a/l10n_it_accompanying_invoice/readme/USAGE.rst +++ b/l10n_it_accompanying_invoice/readme/USAGE.md @@ -1,3 +1,4 @@ Valorizzare i campi del foglio *Informazioni di spedizione*. -Usare l'azione *Fattura accompagnatoria* all'interno della lista di azioni *Stampa*, nella vista delle fatture. +Usare l'azione *Fattura accompagnatoria* all'interno della lista di +azioni *Stampa*, nella vista delle fatture. diff --git a/l10n_it_accompanying_invoice/static/description/index.html b/l10n_it_accompanying_invoice/static/description/index.html index 5566fd655d2a..7edec3812e05 100644 --- a/l10n_it_accompanying_invoice/static/description/index.html +++ b/l10n_it_accompanying_invoice/static/description/index.html @@ -1,4 +1,3 @@ - @@ -369,11 +368,13 @@

ITA - Fattura accompagnatoria

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:47e2b4ae93928006b62502df808ccab3b5f961ed66ec2be01da41807a4c16011 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

Italiano

-

Questo modulo consente di stampare una fattura accompagnatoria, per visualizzare i dati di Informazioni di spedizione nella fattura.

+

Questo modulo consente di stampare una fattura accompagnatoria, per +visualizzare i dati di Informazioni di spedizione nella fattura.

English

-

This module allows you to print an accompanying invoice, to view Shipping Information data inside the invoice.

+

This module allows you to print an accompanying invoice, to view +Shipping Information data inside the invoice.

Table of contents

    @@ -390,14 +391,15 @@

    ITA - Fattura accompagnatoria

    Usage

    Valorizzare i campi del foglio Informazioni di spedizione.

    -

    Usare l’azione Fattura accompagnatoria all’interno della lista di azioni Stampa, nella vista delle fatture.

    +

    Usare l’azione Fattura accompagnatoria all’interno della lista di +azioni Stampa, nella vista delle fatture.

    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.

    +feedback.

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

    @@ -422,7 +424,7 @@

    Maintainers

    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.

    +

    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_accompanying_invoice/tests/test_report.py b/l10n_it_accompanying_invoice/tests/test_report.py index c0c1fd0ffb69..3ad0dbba8608 100644 --- a/l10n_it_accompanying_invoice/tests/test_report.py +++ b/l10n_it_accompanying_invoice/tests/test_report.py @@ -5,14 +5,12 @@ class TestReport(odoo.tests.TransactionCase): def test_report(self): - report = self.env['ir.actions.report']._get_report_from_name( - 'l10n_it_accompanying_invoice.accompanying_invoice_template' + report = self.env["ir.actions.report"]._get_report_from_name( + "l10n_it_accompanying_invoice.accompanying_invoice_template" ) - partner1 = self.env.ref('base.res_partner_1') - invoice = self.env['account.invoice'].create({ - 'partner_id': partner1.id - }) + partner1 = self.env.ref("base.res_partner_1") + invoice = self.env["account.invoice"].create({"partner_id": partner1.id}) html = report.render_qweb_html([invoice.id]) diff --git a/l10n_it_accompanying_invoice/views/account.xml b/l10n_it_accompanying_invoice/views/account.xml index ace59b812a67..daef141f6231 100644 --- a/l10n_it_accompanying_invoice/views/account.xml +++ b/l10n_it_accompanying_invoice/views/account.xml @@ -1,14 +1,14 @@ - + - + account.invoice.form.ddt.uom account.invoice - + - + diff --git a/l10n_it_accompanying_invoice/views/report_invoice.xml b/l10n_it_accompanying_invoice/views/report_invoice.xml index d3af8dae5b7a..38aa953ae9a0 100644 --- a/l10n_it_accompanying_invoice/views/report_invoice.xml +++ b/l10n_it_accompanying_invoice/views/report_invoice.xml @@ -1,30 +1,33 @@ - + + id="accompanying_invoice_report" + model="account.invoice" + string="Accompanying Invoice" + report_type="qweb-pdf" + name="l10n_it_accompanying_invoice.accompanying_invoice_template" + file="l10n_it_accompanying_invoice.accompanying_invoice_template" + /> -