Hi !
I'm looking for the correct group name to hide menu item "create invoice" button!
I'v tried to add a "group= " in the button field.
It works and I can hide for everyone, but I want to restrict the access only to admin or better to the "sale administrator" group or to a custom group I've created : "sale accountant"
My last try was this, but not working :
<button name="%(sale.action_view_sale_advance_payment_inv)d" string="Create Invoice"
group="sale.order.manager"
type="action" context="{'default_advance_payment_method': 'percentage'}"
attrs="{'invisible': ['|',('invoice_status', '!=', 'no'), ('state', '!=', 'sale')]}"/>
does anyone has already done that ?
Thanks in advance