changeset ac6dab84a363 in modules/sale:5.8
details: https://hg.tryton.org/modules/sale?cmd=changeset&node=ac6dab84a363
description:
Get return sale from sale's origin
issue10702
review369591002
(grafted from 125ab979d3e3f47dae2effaa3f23e338cb07b2d5)
diffstat:
stock.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r ed07f483387b -r ac6dab84a363 stock.py
--- a/stock.py Wed Sep 01 22:56:20 2021 +0200
+++ b/stock.py Sat Sep 04 09:47:24 2021 +0200
@@ -165,8 +165,8 @@
and self.origin.quantity < 0
and self.from_location.type != 'storage'
and self.to_location.type == 'storage'
- and isinstance(self.origin.origin, Sale)):
- sale = self.origin.origin
+ and isinstance(self.origin.sale.origin, Sale)):
+ sale = self.origin.sale.origin
cost = Decimal(0)
qty = Decimal(0)
for move in sale.moves: