Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
f3c5fea8 by Cédric Krier at 2023-01-01T17:08:48+01:00
Assign only customer shipment with supplied quantities
Closes #11959
- - - - -
1 changed file:
- modules/sale_supply/sale.py
Changes:
=====================================
modules/sale_supply/sale.py
=====================================
@@ -190,6 +190,7 @@
pool = Pool()
Uom = pool.get('product.uom')
Move = pool.get('stock.move')
+ ShipmentOut = pool.get('stock.shipment.out')
if self.supply_state != 'supplied':
return
@@ -220,7 +221,7 @@
moves = set()
for move in self.moves:
- if move.shipment:
+ if isinstance(move.shipment, ShipmentOut):
for inv_move in move.shipment.inventory_moves:
if inv_move.product.id == self.product.id:
moves.add(inv_move)
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/f3c5fea8232272981826a373ed30647b300676d5
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/f3c5fea8232272981826a373ed30647b300676d5
You're receiving this email because of your account on foss.heptapod.net.