Skip to content

Commit

Permalink
[FIX] l10n_it_shipping_invoice -> l10n_it_accompanying_invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
odooNextev committed Aug 6, 2024
1 parent cce0142 commit 2fe42be
Show file tree
Hide file tree
Showing 23 changed files with 196 additions and 206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ 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/16.0/l10n_it_shipping_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-16-0/l10n-italy-16-0-l10n_it_shipping_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=16.0
Expand Down Expand Up @@ -62,7 +62,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/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 <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_shipping_invoice%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_accompanying_invoice%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand Down Expand Up @@ -93,6 +93,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 <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_shipping_invoice>`_ project on GitHub.
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_accompanying_invoice>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"version": "16.0.1.0.0",
"category": "Accounting",
"website": "https://github.com/OCA/l10n-italy"
"/tree/16.0/l10n_it_shipping_invoice",
"/tree/16.0/l10n_it_accompanying_invoice",
"author": "Agile Business Group, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

from odoo.tools import DotDict

NEW_MODULE_NAME = "l10n_it_accompanying_invoice"
OLD_MODULE_NAME = "l10n_it_shipping_invoice"

RENAMED_FIELDS = [
(
"account.move",
Expand Down Expand Up @@ -66,8 +63,8 @@ def migrate_old_module(cr):
)
full_renamed_xmlids = [
(
".".join((NEW_MODULE_NAME, old_xmlid)),
".".join((NEW_MODULE_NAME, new_xmlid)),
".".join(("l10n_it_accompanying_invoice", old_xmlid)),
".".join(("l10n_it_accompanying_invoice", new_xmlid)),
)
for old_xmlid, new_xmlid in RENAMED_XMLIDS
]
Expand All @@ -78,12 +75,5 @@ def migrate_old_module(cr):


def pre_absorb_old_module(cr):
if openupgrade.is_module_installed(cr, OLD_MODULE_NAME):
openupgrade.update_module_names(
cr,
[
(OLD_MODULE_NAME, NEW_MODULE_NAME),
],
merge_modules=True,
)
if openupgrade.is_module_installed(cr, "l10n_it_accompanying_invoice"):
migrate_old_module(cr)

Check warning on line 79 in l10n_it_accompanying_invoice/hooks.py

View check run for this annotation

Codecov / codecov/patch

l10n_it_accompanying_invoice/hooks.py#L79

Added line #L79 was not covered by tests
181 changes: 181 additions & 0 deletions l10n_it_accompanying_invoice/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_accompanying_invoice
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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 <[email protected]>\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_accompanying_invoice
#: model:ir.actions.report,print_report_name:l10n_it_accompanying_invoice.shipping_invoice_report
msgid "(object._get_report_base_filename())"
msgstr ""

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_goods_appearance_id
msgid "Appearance of goods of Delivery"
msgstr "Aspetto dei beni della consegna"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Carrier"
msgstr "Vettore"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_carrier_id
msgid "Carrier of Delivery"
msgstr "Vettore della consegna"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_transport_condition_id
msgid "Condition of transport of Delivery"
msgstr "Condizione di trasporto della consegna"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Goods Appearance"
msgstr "Aspetto dei beni"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Gross Weight"
msgstr "Peso lordo"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_gross_weight
msgid "Gross Weight of Delivery"
msgstr "Peso lordo della consegna"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_gross_weight_uom_id
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__delivery_note
msgid "Internal note of delivery"
msgstr "Note interne della consegna"

#. module: l10n_it_accompanying_invoice
#: model:ir.model,name:l10n_it_accompanying_invoice.model_account_move
msgid "Journal Entry"
msgstr "Registrazione contabile"

#. 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"
msgstr "Metodo di trasporto della consegna"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Net Weight"
msgstr "Peso netto"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_net_weight
msgid "Net Weight of Delivery"
msgstr "Peso netto della consegna"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_net_weight_uom_id
msgid "Net Weight of Delivery UoM"
msgstr "UdM del peso netto della consegna"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Note"
msgstr ""

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Other"
msgstr "Altro"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Packages"
msgstr "Pacchi"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_packages
msgid "Packages of Delivery"
msgstr "Pacchi della consegna"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Parcels"
msgstr "Colli"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_transport_reason_id
msgid "Reason of transport of Delivery"
msgstr "Causale di trasporto della consegna"

#. module: l10n_it_accompanying_invoice
#: model:ir.model,name:l10n_it_accompanying_invoice.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Shipping Information"
msgstr "Informazioni di spedizione"

#. module: l10n_it_accompanying_invoice
#: model:ir.actions.report,name:l10n_it_accompanying_invoice.shipping_invoice_report
msgid "Shipping Invoice"
msgstr "Fattura accompagnatoria"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Transport"
msgstr "Trasporto"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Transport Condition"
msgstr "Condizione di trasporto"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Transport Date"
msgstr "Data di trasporto"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_transport_datetime
msgid "Transport Date of Delivery"
msgstr "Data di trasporto della consegna"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Transport Method"
msgstr "Metodo di trasporto"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Transport Reason"
msgstr "Causale di trasporto"

#. module: l10n_it_accompanying_invoice
#: model_terms:ir.ui.view,arch_db:l10n_it_accompanying_invoice.view_move_form
msgid "Volume"
msgstr ""

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_volume
msgid "Volume of Delivery"
msgstr "Volume della consegna"

#. module: l10n_it_accompanying_invoice
#: model:ir.model.fields,field_description:l10n_it_accompanying_invoice.field_account_move__delivery_volume_uom_id
msgid "Volume of Delivery UoM"
msgstr "UdM del volume della consegna"
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# but it raises
# > ImportError: attempted relative import with no known parent package
# pylint: disable=odoo-addons-relative-import
from odoo.addons.l10n_it_shipping_invoice import hooks
from odoo.addons.l10n_it_accompanying_invoice import hooks


def migrate(cr, installed_version):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h1 class="title">ITA - Fattura accompagnatoria</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:47e2b4ae93928006b62502df808ccab3b5f961ed66ec2be01da41807a4c16011
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_shipping_invoice"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_shipping_invoice"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_accompanying_invoice"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_accompanying_invoice"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><strong>Italiano</strong></p>
<p>Questo modulo consente di stampare una fattura accompagnatoria, per
visualizzare i dati di <em>Informazioni di spedizione</em> nella fattura.</p>
Expand Down Expand Up @@ -404,7 +404,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_shipping_invoice%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_accompanying_invoice%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -429,7 +429,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_shipping_invoice">OCA/l10n-italy</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_accompanying_invoice">OCA/l10n-italy</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_report(self):
)

html = self.env["ir.actions.report"]._render_qweb_html(
"l10n_it_shipping_invoice.shipping_invoice_template",
"l10n_it_accompanying_invoice.shipping_invoice_template",
[invoice.id],
)
self.assertTrue(html)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<field name="report_type">qweb-pdf</field>
<field
name="report_name"
>l10n_it_shipping_invoice.shipping_invoice_template</field>
>l10n_it_accompanying_invoice.shipping_invoice_template</field>
<field
name="report_file"
>l10n_it_shipping_invoice.shipping_invoice_template</field>
>l10n_it_accompanying_invoice.shipping_invoice_template</field>
<field name="print_report_name">(object._get_report_base_filename())</field>
<field name="binding_model_id" ref="model_account_move" />
<field name="binding_type">report</field>
Expand Down
Loading

0 comments on commit 2fe42be

Please sign in to comment.