mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] fix security issue on account_invoice
This fix seems ugly, but I cant figure why I've a security error when an invoice is displayed for a user without right on credit_control despite the attribute 'groups' declared on the field definition in the form view
This commit is contained in:
committed by
Pedro M. Baeza
parent
12e5862bb2
commit
ff9882bd0d
@@ -34,6 +34,9 @@ class AccountInvoice(models.Model):
|
||||
"setting.",
|
||||
readonly=True,
|
||||
copy=False,
|
||||
groups="account_credit_control.group_account_credit_control_manager,"
|
||||
"account_credit_control.group_account_credit_control_user,"
|
||||
"account_credit_control.group_account_credit_control_info",
|
||||
)
|
||||
|
||||
credit_control_line_ids = fields.One2many(
|
||||
|
||||
Reference in New Issue
Block a user