changeset 6f875000be1f in modules/stock:5.8
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=6f875000be1f
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 bf964b5cd429 -r 6f875000be1f shipment.py
--- a/shipment.py Wed May 05 22:48:03 2021 +0200
+++ b/shipment.py Mon Jul 12 22:37:21 2021 +0200
@@ -267,7 +267,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