[FIX] account: fix model security for multi-company
In multi-company, create a new company C. Set the chart of account in settings, save. You get an access right violation on account.reconcile.model.template because you need account_user. Since this group is supposedly dependent on another module, a user is supposedly never in this group without that module. Obviously, this should supposedly not happen. opw 1938539 closes odoo/odoo#31003
This commit is contained in:
@@ -68,7 +68,7 @@ access_account_account_type_invoice,account.account.type invoice,model_account_a
|
||||
access_account_account_tax,account.account.tag,model_account_account_tag,account.group_account_user,1,1,1,1
|
||||
access_account_account_tax_user,account.account.tag,model_account_account_tag,account.group_account_invoice,1,0,0,0
|
||||
access_account_reconcile_model,account.reconcile.model,model_account_reconcile_model,account.group_account_user,1,1,1,1
|
||||
access_account_reconcile_model_template,account.reconcile.model.template,model_account_reconcile_model_template,account.group_account_user,1,1,1,1
|
||||
access_account_reconcile_model_template,account.reconcile.model.template,model_account_reconcile_model_template,account.group_account_invoice,1,1,1,1
|
||||
access_account_partial_reconcile_group_invoice,account.partial.reconcile.group.invoice,model_account_partial_reconcile,account.group_account_invoice,1,1,1,0
|
||||
access_account_partial_reconcile,account.partial.reconcile,model_account_partial_reconcile,account.group_account_user,1,1,1,1
|
||||
access_account_full_reconcile_group_invoice,account.full.reconcile.group.invoice,model_account_full_reconcile,account.group_account_invoice,1,1,1,0
|
||||
|
||||
|
Reference in New Issue
Block a user