Skip to content

Commit

Permalink
[FIX] account_asset_stock_move: sudo smart button asset
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-tubtim committed May 28, 2022
1 parent 7b2a592 commit 926ebfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_asset_stock_move/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def action_view_assets(self):
.mapped("asset_id")
)
action = self.env.ref("account_asset_management.account_asset_action")
action_dict = action.read()[0]
action_dict = action.sudo().read()[0]
if len(assets) == 1:
res = self.env.ref(
"account_asset_management.account_asset_view_form", False
Expand Down

0 comments on commit 926ebfd

Please sign in to comment.