Get return sale from sale's origin

issue10702
review369591002
(grafted from 125ab979d3e3f47dae2effaa3f23e338cb07b2d5)

--HG--
branch : 6.0
This commit is contained in:
Raimon Esteve committed 2021-09-04 09:47:24 +02:00
1 parent 5bb4e2e7af
commit d423fc0ce1
1 file changed
+2 -2
+2 -2
View File
@@ -165,8 +165,8 @@ class Move(metaclass=PoolMeta):
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: