Skip to content

Commit

Permalink
stock_release_channel: do not 'write' records in '_compute_picking_co…
Browse files Browse the repository at this point in the history
…unt'

This is triggering concurrency updates on release channel records while
reading them in the dashboard (updating `write_date` + `write_uid`
fields).
  • Loading branch information
sebalix committed Jan 9, 2025
1 parent cd82181 commit 61590c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_release_channel/models/stock_release_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61590c7

Please sign in to comment.