changeset 61ee617b3b07 in modules/stock:5.0 details: https://hg.tryton.org/modules/stock?cmd=changeset&node=61ee617b3b07 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 8ba452c08d13 -r 61ee617b3b07 shipment.py --- a/shipment.py Thu Jun 17 22:08:52 2021 +0200 +++ b/shipment.py Mon Jul 12 22:37:21 2021 +0200 @@ -247,7 +247,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