Skip to content

Commit

Permalink
[FIX] purchase_stock_ux:add context to write method
Browse files Browse the repository at this point in the history
closes #173

Related: ingadhoc/sale#683
Related: ingadhoc/stock#385
Signed-off-by: Juan Carreras <jc@adhoc.com.ar>
  • Loading branch information
ALopez-Adhoc committed Jul 20, 2023
1 parent 82f562e commit 09191b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions purchase_stock_ux/models/purchase_order.py
Expand Up @@ -71,6 +71,7 @@ def _compute_delivery_status(self):
order.delivery_status = 'no'

def write(self, values):
self = self.with_context(cancel_from_order=True)
self.check_force_delivered_status(values)
return super().write(values)

Expand Down

0 comments on commit 09191b6

Please sign in to comment.