Skip to content

Commit

Permalink
fix access rights
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillot committed Feb 12, 2024
1 parent 288d5ac commit c185a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_orderpoint_generator/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _trigger_scheduler(self):
limit=1,
)
if not orderpoint:
template = self.env["stock.warehouse.orderpoint.template"].search(
template = self.env["stock.warehouse.orderpoint.template"].sudo().search(
[
("location_id", "parent_of", move.location_id.id),
("company_id", "=", move.company_id.id),
Expand Down

0 comments on commit c185a36

Please sign in to comment.