From 45c3054485c7454ec41e01c3732f899bef30a138 Mon Sep 17 00:00:00 2001 From: LorenzoC0 Date: Tue, 19 Nov 2024 12:44:12 +0100 Subject: [PATCH] [MIG] l10n_it_accompanying_invoice: Migration to 14.0 --- l10n_it_accompanying_invoice/__init__.py | 1 + l10n_it_accompanying_invoice/__manifest__.py | 9 +++---- l10n_it_accompanying_invoice/i18n/it.po | 26 ++++++++++++++++--- .../tests/test_report.py | 8 +++--- .../views/account.xml | 2 +- l10n_it_delivery_note/README.rst | 6 ++--- .../static/description/index.html | 19 +++++++++++--- .../odoo/addons/l10n_it_accompanying_invoice | 1 + setup/l10n_it_accompanying_invoice/setup.py | 6 +++++ 9 files changed, 56 insertions(+), 22 deletions(-) create mode 120000 setup/l10n_it_accompanying_invoice/odoo/addons/l10n_it_accompanying_invoice create mode 100644 setup/l10n_it_accompanying_invoice/setup.py diff --git a/l10n_it_accompanying_invoice/__init__.py b/l10n_it_accompanying_invoice/__init__.py index 252cb47ba60b..c70416271455 100644 --- a/l10n_it_accompanying_invoice/__init__.py +++ b/l10n_it_accompanying_invoice/__init__.py @@ -1,4 +1,5 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import models + # from .hooks import pre_absorb_old_module diff --git a/l10n_it_accompanying_invoice/__manifest__.py b/l10n_it_accompanying_invoice/__manifest__.py index b4cff3c935b9..c17bfbdfba50 100644 --- a/l10n_it_accompanying_invoice/__manifest__.py +++ b/l10n_it_accompanying_invoice/__manifest__.py @@ -5,13 +5,12 @@ { "name": "ITA - Fattura accompagnatoria", - 'summary': 'Stampa della fattura accompagnatoria', - "version": "16.0.1.0.0", + "summary": "Stampa della fattura accompagnatoria", + "version": "14.0.1.0.0", "category": "Accounting", "website": "https://github.com/OCA/l10n-italy" - "/tree/16.0/l10n_it_accompanying_invoice", - "author": "Agile Business Group, " - "Odoo Community Association (OCA)", + "/tree/14.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/i18n/it.po b/l10n_it_accompanying_invoice/i18n/it.po index aa758cd3b2c6..f8ad8ed27bfa 100644 --- a/l10n_it_accompanying_invoice/i18n/it.po +++ b/l10n_it_accompanying_invoice/i18n/it.po @@ -4,11 +4,11 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-28 08:52+0000\n" -"PO-Revision-Date: 2023-11-28 08:52+0000\n" -"Last-Translator: Simone Rubino \n" +"POT-Creation-Date: 2024-11-19 14:29+0000\n" +"PO-Revision-Date: 2024-11-19 14:29+0000\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -40,6 +40,12 @@ msgstr "Vettore della consegna" msgid "Condition of transport of Delivery" msgstr "Condizione di trasporto della consegna" +#. module: l10n_it_accompanying_invoice +#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__display_name +#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_sale_order__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + #. module: l10n_it_accompanying_invoice #: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form msgid "Goods Appearance" @@ -60,6 +66,12 @@ msgstr "Peso lordo della consegna" msgid "Gross Weight of Delivery UoM" msgstr "UdM del peso lordo della consegna" +#. module: l10n_it_accompanying_invoice +#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__id +#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_sale_order__id +msgid "ID" +msgstr "" + #. module: l10n_it_accompanying_invoice #: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_note msgid "Internal note of delivery" @@ -70,6 +82,12 @@ msgstr "Note interne della consegna" msgid "Journal Entry" msgstr "Registrazione contabile" +#. module: l10n_it_accompanying_invoice +#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move____last_update +#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_sale_order____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + #. module: l10n_it_accompanying_invoice #: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_transport_method_id msgid "Method of transport of Delivery" diff --git a/l10n_it_accompanying_invoice/tests/test_report.py b/l10n_it_accompanying_invoice/tests/test_report.py index e8dad3c30cf6..6ee539bac228 100644 --- a/l10n_it_accompanying_invoice/tests/test_report.py +++ b/l10n_it_accompanying_invoice/tests/test_report.py @@ -14,8 +14,8 @@ def test_report(self): "out_invoice", ) - html = self.env["ir.actions.report"]._render_qweb_html( - "l10n_it_accompanying_invoice.shipping_invoice_template", - [invoice.id], + report = self.env["ir.actions.report"]._get_report_from_name( + "l10n_it_accompanying_invoice.shipping_invoice_template" ) - self.assertTrue(html) \ No newline at end of file + html = report._render_qweb_html(invoice.id) + self.assertTrue(html) diff --git a/l10n_it_accompanying_invoice/views/account.xml b/l10n_it_accompanying_invoice/views/account.xml index 62fefa40ccc0..991639a4eb27 100644 --- a/l10n_it_accompanying_invoice/views/account.xml +++ b/l10n_it_accompanying_invoice/views/account.xml @@ -84,4 +84,4 @@ - \ No newline at end of file + diff --git a/l10n_it_delivery_note/README.rst b/l10n_it_delivery_note/README.rst index f5805ef65c0c..ca6a533bfed1 100644 --- a/l10n_it_delivery_note/README.rst +++ b/l10n_it_delivery_note/README.rst @@ -209,10 +209,8 @@ Contributors * Alessandro Uffreduzzi * Sebastiano Picchi * Sergio Corato - -- `Aion Tech `__: - - - Simone Rubino +* `Aion Tech `_: + * Simone Rubino Maintainers ~~~~~~~~~~~ diff --git a/l10n_it_delivery_note/static/description/index.html b/l10n_it_delivery_note/static/description/index.html index dc9bf514fc1e..0e82beaeb5c0 100644 --- a/l10n_it_delivery_note/static/description/index.html +++ b/l10n_it_delivery_note/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -544,12 +545,22 @@

Contributors

  • Sergio Corato <https://github.com/sergiocorato>
  • +
  • +
    Aion Tech:
    +
    +
    +
    +
  • Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +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.

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