Skip to content

Commit 1363719

Browse files
committed
[MIG] delivery_postlogistics_dangerous_goods: Migration to 18.0
1 parent 3629c7e commit 1363719

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

delivery_postlogistics_dangerous_goods/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Postlogistics Shipping Dangerous Goods",
55
"summary": "Declare dangerous goods when generating postlogistics labels",
6-
"version": "14.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"author": "Camptocamp,Odoo Community Association (OCA)",
88
"maintainer": "Camptocamp",
99
"license": "AGPL-3",

delivery_postlogistics_dangerous_goods/postlogistics/web_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def _get_unnumbers(self, picking, pack=None):
1616
products = (
1717
pack
1818
and pack.mapped("quant_ids.product_id")
19-
or picking.mapped("move_lines.product_id")
19+
or picking.mapped("move_ids.product_id")
2020
)
2121
limited_amount_lq = picking.env.ref(
2222
"l10n_eu_product_adr_dangerous_goods.limited_amount_1"

delivery_postlogistics_dangerous_goods/tests/test_postlogistics_dangerous_goods.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def setUpClassWebservice(cls):
3030
cls.service_class = PostlogisticsWebServiceDangerousGoods(
3131
cls.env.user.company_id
3232
)
33+
return None
3334

3435
@classmethod
3536
def setUpClass(cls):

0 commit comments

Comments
 (0)