From 926ebfd25ac7d6443db47c6c95be6838f4dbe75b Mon Sep 17 00:00:00 2001 From: ps-tubtim Date: Mon, 17 Jan 2022 19:04:31 +0700 Subject: [PATCH] [FIX] account_asset_stock_move: sudo smart button asset --- account_asset_stock_move/models/stock_picking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_asset_stock_move/models/stock_picking.py b/account_asset_stock_move/models/stock_picking.py index 5df9d3d23dba..55c0aaf1f9fc 100644 --- a/account_asset_stock_move/models/stock_picking.py +++ b/account_asset_stock_move/models/stock_picking.py @@ -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