Skip to content

Commit

Permalink
[IMP] product_packaging_container_deposit: Add more context for updat…
Browse files Browse the repository at this point in the history
…e order container deposit quantity
  • Loading branch information
duongtq committed Mar 12, 2024
1 parent 36142ca commit 104ea2e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def update_order_container_deposit_quantity(self):
product, deposit_container_qties[product][0]
)
values_lst.append(Command.create(values))
order.write({self._get_order_line_field(): values_lst})
order.with_context(update_order_container_deposit_quantity=True).write(
{self._get_order_line_field(): values_lst}
)
# Schedule line to delete after commit to avoid caching issue w/ UI
if line_ids_to_delete:
self.env.cr.postcommit.add(
Expand Down

0 comments on commit 104ea2e

Please sign in to comment.