Skip to content

Commit caa6893

Browse files
committed
[MIG] l10n_ch_adr_report: Migration to 18.0
1 parent 12013d9 commit caa6893

13 files changed

+146
-118
lines changed

l10n_ch_adr_report/README.rst

+3
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,14 @@ Contributors
7070
- `Trobz <https://trobz.com>`__:
7171

7272
- Son Ho <sonhd@trobz.com>
73+
- Do Anh Duy <duyda@trobz.com>
7374

7475
Other credits
7576
-------------
7677

7778
The development of this module was financially supported by Camptocamp
79+
The migration of this module from 14.0 to 18.0 was financially supported
80+
by Camptocamp
7881

7982
Maintainers
8083
-----------

l10n_ch_adr_report/__manifest__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "ADR Products Swiss Report",
55
"summary": "Print Delivery report to ADR swiss configuration",
6-
"version": "14.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"category": "Product",
88
"website": "https://github.com/OCA/l10n-switzerland",
99
"author": "Camptocamp, Odoo Community Association (OCA)",
@@ -13,6 +13,10 @@
1313
"depends": ["l10n_eu_product_adr_dangerous_goods", "stock", "delivery"],
1414
"data": [
1515
"report/DG_ch_delivery_report.xml",
16-
"views/assets.xml",
1716
],
17+
"assets": {
18+
"web.report_assets_common": [
19+
"/l10n_ch_adr_report/static/src/scss/adr_report.scss",
20+
],
21+
},
1822
}

l10n_ch_adr_report/i18n/de.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 14.0+e\n"
7+
"Project-Id-Version: Odoo Server 18.0+e\n"
88
"Report-Msgid-Bugs-To: \n"
99
"POT-Creation-Date: 2020-08-06 10:55+0000\n"
1010
"PO-Revision-Date: 2020-08-06 10:55+0000\n"

l10n_ch_adr_report/i18n/fr.pot

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 14.0+e\n"
7+
"Project-Id-Version: Odoo Server 18.0+e\n"
88
"Report-Msgid-Bugs-To: \n"
99
"POT-Creation-Date: 2021-03-23 11:10+0000\n"
1010
"PO-Revision-Date: 2021-03-23 11:10+0000\n"

l10n_ch_adr_report/i18n/l10n_ch_adr_report.pot

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 14.0\n"
7+
"Project-Id-Version: Odoo Server 18.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"

l10n_ch_adr_report/models/product_product.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2022 Camptocamp SA
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
33

4-
from odoo import _, fields, models
4+
from odoo import fields, models
55

66

77
class ProductProduct(models.Model):
@@ -13,10 +13,10 @@ class ProductProduct(models.Model):
1313
)
1414

1515
def _compute_adr_report_class_display_name(self):
16+
_ = self.env._
1617
for record in self:
1718
adr_good = record.adr_goods_id
18-
res = _("UN")
19-
res += f" {adr_good.un_number}, {adr_good.name}"
19+
res = _(f"UN {adr_good.un_number}, {adr_good.name}")
2020
if record.nag:
2121
res += _(" {}").format(record.nag)
2222

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
- [Camptocamp](https://www.camptocamp.com):
1+
- [Camptocamp](https://www.camptocamp.com):
22
- Iryna Vyshnevska \<<iryna.vyshnevska@camptocamp.com>\>
33
- Carlos Serra-Toro \<<carlos.serra@camptocamp.com>\>
44
- Iryna Vyshnevska \<<iryna.vyshnevska@camptocamp.com>\>
55
- Matthieu Méquignon \<<matthieu.mequignon@camptocamp.com>\>
66
- Sébastien Alix \<<sebastien.alix@camptocamp.com>\>
77
- Thierry Ducrest \<<thierry.ducrest@camptocamp.com>\>
88

9-
- [Trobz](https://trobz.com):
9+
- [Trobz](https://trobz.com):
1010
- Son Ho \<<sonhd@trobz.com>\>
11+
- Do Anh Duy \<<duyda@trobz.com>\>

l10n_ch_adr_report/readme/CREDITS.md

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
The development of this module was financially supported by Camptocamp
2+
The migration of this module from 14.0 to 18.0 was financially supported
3+
by Camptocamp

0 commit comments

Comments
 (0)