Support warehouse pickup
issue11574 review419411003
This commit is contained in:
1 parent
04d312675d
commit
70ab31ceb0
1 file changed
+4
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user