Skip to content

Commit 4eb6454

Browse files
committed
[FIX] sudo account move
1 parent 13cf4a8 commit 4eb6454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stock_move_backdating/models/stock_move.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _get_price_unit(self):
4242

4343
def _backdating_account_moves(self):
4444
"""Set date on linked account.move same for each move in `self`."""
45-
picking_account_moves = self.env["account.move"].search(
45+
picking_account_moves = self.env["account.move"].sudo().search(
4646
[
4747
("stock_move_id", "in", self.ids),
4848
],

0 commit comments

Comments
 (0)