changeset 1f3e5f1886bc in modules/stock:6.0
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=1f3e5f1886bc
description:
Do not use supplier location if empty
issue10240
review350071002
(grafted from bb00de0b5cc9da88780cd6b44534213ec43ffd0c)
diffstat:
shipment.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1119a28d0d7d -r 1f3e5f1886bc shipment.py
--- a/shipment.py Thu Jul 01 21:44:02 2021 +0200
+++ b/shipment.py Mon Jul 12 22:37:21 2021 +0200
@@ -325,7 +325,7 @@
@fields.depends('supplier')
def on_change_with_supplier_location(self, name=None):
- if self.supplier:
+ if self.supplier and self.supplier.supplier_location:
return self.supplier.supplier_location.id
@classmethod