We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13cf4a8 commit 4eb6454Copy full SHA for 4eb6454
stock_move_backdating/models/stock_move.py
@@ -42,7 +42,7 @@ def _get_price_unit(self):
42
43
def _backdating_account_moves(self):
44
"""Set date on linked account.move same for each move in `self`."""
45
- picking_account_moves = self.env["account.move"].search(
+ picking_account_moves = self.env["account.move"].sudo().search(
46
[
47
("stock_move_id", "in", self.ids),
48
],
0 commit comments