From 3bb2adc1df600a3e8cb0c12802b9b9b26d303888 Mon Sep 17 00:00:00 2001 From: PicchiSeba Date: Mon, 22 Apr 2024 13:46:28 +0200 Subject: [PATCH 1/2] [FIX]assets_management: differentiate groups --- assets_management/security/res_groups.xml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/assets_management/security/res_groups.xml b/assets_management/security/res_groups.xml index 03f601f475e0..4367e1e8cf6e 100644 --- a/assets_management/security/res_groups.xml +++ b/assets_management/security/res_groups.xml @@ -3,12 +3,24 @@ Asset Users - + + + Billing and Assets + + + + - + From 242b8e042fc5514808d50cc70c74fdeb6af9efef Mon Sep 17 00:00:00 2001 From: PicchiSeba Date: Tue, 23 Apr 2024 09:57:54 +0200 Subject: [PATCH 2/2] [FIX]assets_management: handle access error during flag computation --- assets_management/models/account_move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/assets_management/models/account_move.py b/assets_management/models/account_move.py index ea915458e4ba..78e9c3c1f86c 100644 --- a/assets_management/models/account_move.py +++ b/assets_management/models/account_move.py @@ -26,6 +26,7 @@ class AccountMove(models.Model): hide_link_asset_button = fields.Boolean( compute="_compute_hide_link_asset_button", + compute_sudo=True, default=True, string="Hide Asset Button", )