Skip to content

Commit

Permalink
account_cutoff_accrual_sale: fix access rights
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaudoux committed Sep 30, 2024
1 parent bbd8612 commit f9375a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_cutoff_accrual_sale/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ def write(self, vals):
# (see delivery module), we need to check each line when the order
# invoice status becomes "to invoice"
for line in self.order_line:
line._update_cutoff_accrual()
line.sudo()._update_cutoff_accrual()
return res

0 comments on commit f9375a8

Please sign in to comment.