From a3acb5313e7366cac6d0bd735ffac3a4d4abda39 Mon Sep 17 00:00:00 2001 From: Andhitia Rama Date: Fri, 24 Nov 2023 21:57:29 +0700 Subject: [PATCH] [UPD] ssi_fixed_asset * Add data ownership group --- .../security/account_asset_security.xml | 58 +++++++++++++++---- .../security/ir_module_category_data.xml | 9 +++ ssi_fixed_asset/security/res_group_data.xml | 21 +++++++ 3 files changed, 78 insertions(+), 10 deletions(-) diff --git a/ssi_fixed_asset/security/account_asset_security.xml b/ssi_fixed_asset/security/account_asset_security.xml index 082f173..bec27c1 100644 --- a/ssi_fixed_asset/security/account_asset_security.xml +++ b/ssi_fixed_asset/security/account_asset_security.xml @@ -1,14 +1,52 @@ - + + + Fixed Asset - Responsible to own data + + + [ + ('user_id','=',user.id), + ] + + + + + - - Account Asset Category Multi Company - - - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] - - + + Fixed Asset - Responsible to company data + + + [('company_id','=',user.company_id.id)] + + + + + + + + Fixed Asset - Responsible to company and all child companies data + + + [('company_id','in',user.company_ids.ids)] + + + + + + + + Fixed Asset - Responsible to all data + + + [(1,'=',1)] + + + + + + diff --git a/ssi_fixed_asset/security/ir_module_category_data.xml b/ssi_fixed_asset/security/ir_module_category_data.xml index ecc5403..74b40ee 100644 --- a/ssi_fixed_asset/security/ir_module_category_data.xml +++ b/ssi_fixed_asset/security/ir_module_category_data.xml @@ -10,4 +10,13 @@ ref="ssi_financial_accounting.financial_accounting_module_category" /> + + + Fixed Asset + + 4 + diff --git a/ssi_fixed_asset/security/res_group_data.xml b/ssi_fixed_asset/security/res_group_data.xml index a222460..24f46ea 100644 --- a/ssi_fixed_asset/security/res_group_data.xml +++ b/ssi_fixed_asset/security/res_group_data.xml @@ -28,6 +28,27 @@ /> + + Company + + + + + Company and All Child Companies + + + + + + All + + + + + Fixed Asset Category