changeset 9e5409c52b25 in modules/stock_package_shipping:default
details:
https://hg.tryton.org/modules/stock_package_shipping?cmd=changeset&node=9e5409c52b25
description:
Support warehouse pickup
issue11574
review419411003
diffstat:
stock.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 52aedb08f729 -r 9e5409c52b25 stock.py
--- a/stock.py Mon May 02 17:57:44 2022 +0200
+++ b/stock.py Sat Sep 10 18:34:29 2022 +0200
@@ -235,7 +235,10 @@
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,