Skip to content

Commit bc8ce03

Browse files
committed
[MIG] delivery_postlogistics_dangerous_goods: Migration to 18.0
1 parent a44c9f7 commit bc8ce03

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

delivery_postlogistics_dangerous_goods/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Authors
5757
Contributors
5858
------------
5959

60-
- Matthieu Méquignon <matthieu.mequignon@camptocamp.com>
60+
- Matthieu Méquignon <matthieu.mequignon@camptocamp.com>
6161

6262
Maintainers
6363
-----------

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ def setUpClassProduct(cls):
2626

2727
@classmethod
2828
def setUpClassWebservice(cls):
29-
super().setUpClassWebservice()
29+
res = super().setUpClassWebservice()
3030
cls.service_class = PostlogisticsWebServiceDangerousGoods(
3131
cls.env.user.company_id
3232
)
33+
return res
3334

3435
@classmethod
3536
def setUpClass(cls):

0 commit comments

Comments
 (0)