Support warehouse pickup

issue11574
review419411003
This commit is contained in:
Cédric Krier committed 2022-09-10 18:34:29 +02:00
1 parent 04d312675d
commit 70ab31ceb0
1 file changed
+4 -1
+4 -1
View File
@@ -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,