From 70ab31ceb0e473ad33f78c6c84489ee2ece6e98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 10 Sep 2022 18:34:29 +0200 Subject: [PATCH] Support warehouse pickup issue11574 review419411003 --- stock.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 8bfe72ce4f..70c2eba9b9 100644 --- a/stock.py +++ b/stock.py @@ -235,7 +235,10 @@ class ShippingMixin: pool = Pool() Warning = pool.get('res.user.warning') for shipment in shipments: - if not shipment.carrier: + if (not shipment.carrier + and shipment.delivery_address + and shipment.warehouse not in + shipment.delivery_address.warehouses): name = 'shipment_out_no_carrier_%s' % shipment if Warning.check(name): raise PackWarning(name,