[FIX] account_asset_management: sudo smart button asset
This commit is contained in:
parent
5c2d3c81ec
commit
c8e3f435c7
@ -137,7 +137,7 @@ class AccountMove(models.Model):
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user