2
0

[FIX] account_asset_management: sudo smart button asset

This commit is contained in:
ps-tubtim 2021-12-15 19:04:28 +07:00 committed by Rodrigo
parent 5c2d3c81ec
commit c8e3f435c7

View File

@ -137,7 +137,7 @@ class AccountMove(models.Model):
.mapped("asset_id") .mapped("asset_id")
) )
action = self.env.ref("account_asset_management.account_asset_action") 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: if len(assets) == 1:
res = self.env.ref( res = self.env.ref(
"account_asset_management.account_asset_view_form", False "account_asset_management.account_asset_view_form", False