From be97fac0acd44b8223223c608415ad46b38cfff3 Mon Sep 17 00:00:00 2001 From: Quentin Mondot Date: Wed, 29 Jul 2026 17:25:51 +0200 Subject: [PATCH] [FIX] account_advanced_protection_features: restore bank statement(s) unlink right lost in ebb39f5 The delete right on account.bank.statement and account.bank.statement.line was granted to a super user group via ir.model.access rows added in account_usability_misc (ec22b72). We dropped the super user group when moving the protection feature to this module (in the commit ebb39f5), without re-adding them, leaving perm_unlink stuck at 0 for group_account_user until a full account module update. Reset the unlink right for group_account_user in this commit, so the right is restored automatically on install/upgrade of this module. --- account_advanced_protection_features/__manifest__.py | 3 ++- .../security/ir.model.access.csv | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 account_advanced_protection_features/security/ir.model.access.csv diff --git a/account_advanced_protection_features/__manifest__.py b/account_advanced_protection_features/__manifest__.py index 184e833..5198afd 100644 --- a/account_advanced_protection_features/__manifest__.py +++ b/account_advanced_protection_features/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Account advanced protection features", - "version": "16.0.1.0.0", + "version": "16.0.1.0.1", "author": "Elabore", "website": "https://elabore.coop", "maintainer": "Quentin Mondot", @@ -22,6 +22,7 @@ # always loaded "data": [ "security/res_groups.xml", + "security/ir.model.access.csv", "views/account_journal_views.xml" ], # only loaded in demonstration mode diff --git a/account_advanced_protection_features/security/ir.model.access.csv b/account_advanced_protection_features/security/ir.model.access.csv new file mode 100644 index 0000000..2c5d5c6 --- /dev/null +++ b/account_advanced_protection_features/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_account_bank_statement_reset,account.bank.statement unlink reset,account.model_account_bank_statement,account.group_account_user,1,1,1,1 +access_account_bank_statement_line_reset,account.bank.statement.line unlink reset,account.model_account_bank_statement_line,account.group_account_user,1,1,1,1 -- 2.49.1