Hi all,
I want to change the behaviour of the 'Invoiced' "magic button" in partner form view.
I noticed that the crresponding field is defined as follow:
_columns = {
'total_invoiced': fields.function(_invoice_total, string="Total Invoiced", type='float', groups='account.group_account_invoice'),
}
What does this 'kwarg' argument "groups" mean ?
I couldn't find any documentation about it, so I supposed it makes the field accessible only for users who belong to the 'account.group_account_invoice'.
Now I've created a custom group. How can I add it to the list of authorized groups ?
I tried to redefine the field using V8 API and following syntax
total_invoiced = field.Float(groups='account.group_account_invoice,custom.my_custom_group')
But it doesn't seem to work.
Same using the old API syntax.