[stock] Delete outgoing_moves with zero quantity on packing customer shipment
This commit is contained in:
parent
e3573c5654
commit
e74403c80f
|
@ -0,0 +1,13 @@
|
|||
diff --git a/trytond/trytond/modules/stock/shipment.py b/trytond/trytond/modules/stock/shipment.py
|
||||
index d176518..b915c21 100644
|
||||
--- a/trytond/trytond/modules/stock/shipment.py
|
||||
+++ b/trytond/trytond/modules/stock/shipment.py
|
||||
@@ -1150,6 +1150,8 @@ class ShipmentOut(ShipmentMixin, Workflow, ModelSQL, ModelView):
|
||||
Move = pool.get('stock.move')
|
||||
Move.do([m for s in shipments for m in s.inventory_moves])
|
||||
cls._sync_inventory_to_outgoing(shipments, quantity=True)
|
||||
+ Move.delete([m for s in shipments for m in s.outgoing_moves
|
||||
+ if not m.quantity])
|
||||
Move.assign([m for s in shipments for m in s.outgoing_moves])
|
||||
|
||||
def _sync_move_key(self, move):
|
1
series
1
series
|
@ -29,6 +29,7 @@ issue4482.diff # [stock] stock inventory misses company access rule
|
|||
search_warehouse.diff # [stock] search function for warehouse
|
||||
issue239_630.diff # [stock] get location quantity by product, product template or lot
|
||||
stock_quantity_to_zero.diff # [stock] Ensure to sum with value.
|
||||
issue9737.diff # [stock] Delete outgoing_moves with zero quantity on packing customer shipment
|
||||
|
||||
issue10467.diff # [stock_lot] add lot to grouping when assign try if lot it's required on product
|
||||
production_view.diff #[production] Split inputs and outputs on pages
|
||||
|
|
Loading…
Reference in New Issue