From 581589afc88250a1c7518f032371bb066a036f44 Mon Sep 17 00:00:00 2001 From: Quentin Mondot Date: Fri, 22 Aug 2025 10:25:31 +0200 Subject: [PATCH] [IMP] account_advanced_protection_features: remove group group_account_super_user and create group_account_protection_manager which gives access to protection features --- .../__manifest__.py | 1 + .../i18n/fr.po | 20 +++++++++++++++++-- .../security/res_groups.xml | 7 +++++++ .../views/account_journal_views.xml | 3 +++ account_usability_misc/__manifest__.py | 2 -- .../security/ir.model.access.csv | 5 ----- .../security/res_groups.xml | 8 -------- 7 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 account_advanced_protection_features/security/res_groups.xml delete mode 100644 account_usability_misc/security/ir.model.access.csv delete mode 100644 account_usability_misc/security/res_groups.xml diff --git a/account_advanced_protection_features/__manifest__.py b/account_advanced_protection_features/__manifest__.py index fc596f8..ac5740f 100644 --- a/account_advanced_protection_features/__manifest__.py +++ b/account_advanced_protection_features/__manifest__.py @@ -21,6 +21,7 @@ }, # always loaded "data": [ + "security/res_groups.xml", "views/account_journal_views.xml" ], # only loaded in demonstration mode diff --git a/account_advanced_protection_features/i18n/fr.po b/account_advanced_protection_features/i18n/fr.po index bcf1711..775e91b 100644 --- a/account_advanced_protection_features/i18n/fr.po +++ b/account_advanced_protection_features/i18n/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-21 16:39+0000\n" -"PO-Revision-Date: 2025-08-21 16:39+0000\n" +"POT-Creation-Date: 2025-08-22 08:18+0000\n" +"PO-Revision-Date: 2025-08-22 08:18+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -15,6 +15,21 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. module: account_advanced_protection_features +#: model:res.groups,name:account_advanced_protection_features.group_account_advanced_manager +msgid "Access to account advanced protection features" +msgstr "Accès aux fonctionnalités avancées de protection des journaux" + +#. module: account_advanced_protection_features +#: model:ir.model.fields,field_description:account_advanced_protection_features.field_account_journal__allow_bank_statement_deletion +msgid "Allow bank statement deletion" +msgstr "Autoriser la suppression de relevé bancaire" + +#. module: account_advanced_protection_features +#: model:ir.model,name:account_advanced_protection_features.model_account_bank_statement +msgid "Bank Statement" +msgstr "Relevé bancaire" + #. module: account_advanced_protection_features #: model:ir.model,name:account_advanced_protection_features.model_account_journal msgid "Journal" @@ -43,6 +58,7 @@ msgid "Sent By Email" msgstr "Envoyée par email" #. module: account_advanced_protection_features +#: model:ir.model.fields,field_description:account_advanced_protection_features.field_account_bank_statement__smart_search #: model:ir.model.fields,field_description:account_advanced_protection_features.field_account_journal__smart_search #: model:ir.model.fields,field_description:account_advanced_protection_features.field_account_move__smart_search msgid "Smart Search" diff --git a/account_advanced_protection_features/security/res_groups.xml b/account_advanced_protection_features/security/res_groups.xml new file mode 100644 index 0000000..542f970 --- /dev/null +++ b/account_advanced_protection_features/security/res_groups.xml @@ -0,0 +1,7 @@ + + + + Access to account advanced protection features + + + diff --git a/account_advanced_protection_features/views/account_journal_views.xml b/account_advanced_protection_features/views/account_journal_views.xml index 28a0832..4e3b367 100644 --- a/account_advanced_protection_features/views/account_journal_views.xml +++ b/account_advanced_protection_features/views/account_journal_views.xml @@ -8,13 +8,16 @@ diff --git a/account_usability_misc/__manifest__.py b/account_usability_misc/__manifest__.py index fe72668..664c96f 100644 --- a/account_usability_misc/__manifest__.py +++ b/account_usability_misc/__manifest__.py @@ -14,8 +14,6 @@ 'account_statement_base', ], 'data': [ - 'security/res_groups.xml', - 'security/ir.model.access.csv', 'views/account_search.xml', 'views/account_tree_view.xml', 'views/bank_statement_line_views.xml', diff --git a/account_usability_misc/security/ir.model.access.csv b/account_usability_misc/security/ir.model.access.csv deleted file mode 100644 index 06be173..0000000 --- a/account_usability_misc/security/ir.model.access.csv +++ /dev/null @@ -1,5 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -account.access_account_bank_statement,account.bank.statement,account.model_account_bank_statement,account.group_account_user,1,1,1,0 -account.access_account_bank_statement_line,account.bank.statement.line,account.model_account_bank_statement_line,account.group_account_user,1,1,1,0 -access_account_bank_statement,account.bank.statement,account.model_account_bank_statement,group_account_super_user,1,1,1,1 -access_account_bank_statement_line,account.bank.statement.line,account.model_account_bank_statement_line,group_account_super_user,1,1,1,1 \ No newline at end of file diff --git a/account_usability_misc/security/res_groups.xml b/account_usability_misc/security/res_groups.xml deleted file mode 100644 index cf400ae..0000000 --- a/account_usability_misc/security/res_groups.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Right to delete bank statement and bank statement lines - - - - \ No newline at end of file