Get return sale from sale's origin
issue10702 review369591002 (grafted from 125ab979d3e3f47dae2effaa3f23e338cb07b2d5) --HG-- branch : 6.0
This commit is contained in:
1 parent
5bb4e2e7af
commit
d423fc0ce1
1 file changed
+2
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user