diff --git a/stock_release_channel/models/stock_release_channel.py b/stock_release_channel/models/stock_release_channel.py index 72182657d6..958ac32bef 100644 --- a/stock_release_channel/models/stock_release_channel.py +++ b/stock_release_channel/models/stock_release_channel.py @@ -386,7 +386,7 @@ def _compute_picking_count(self): + values[f"{prefix}_picking_released"] + values[f"{prefix}_picking_done"] ) - record.write(values) + record.update(values) def _query_get_chain(self, pickings): """Get all stock.picking before an outgoing one