[FIX] account_advanced_protection_features: restore bank statement(s) unlink right lost in ebb39f5
Some checks failed
pre-commit / pre-commit (pull_request) Has been cancelled

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.
This commit is contained in:
2026-07-29 17:25:51 +02:00
parent 0d54dd094a
commit be97fac0ac
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_account_bank_statement_reset account.bank.statement unlink reset account.model_account_bank_statement account.group_account_user 1 1 1 1
3 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