Hi,
I'm using Odoo 11.
The groups account invoicing and account manager cannot see the column discount on invoice tree.
I found this code in the account module:
<field name="discount" groups="base.group_no_one"/>
So I tried chaging groups like this:
<xpath expr="/tree/field[@name='discount']" position="attributes">
<attribute name="groups">account.group_account_invoice</attribute>
</xpath>
But it's not working. Any idea how to do this?
Update:
I found that this field is visible only in debug mode (for admin and all the other users).
This makes no sense, an invoice has to have a discount column for a normal user.