I'm working with openERP 7.0 and I try to hide the "validate" button on invoice for a group of user. It is possible with the rights access ?
Could you please help me ?
Yes. Create a custom module and overwrite the view for the invoice. Replace the button like this:
<button name="invoice_open" states="draft,proforma2" string="Validate" class="oe_highlight" groups="account.group_account_invoice"/>
<button name="invoice_open" states="draft,proforma2" string="Validate" class="oe_highlight" groups="account.group_account_invoice, mymodule_my_custom_group"/>
Just not forget to update the security.xml with your group, and rights.
You just create a new view, and you can replace with this methode. This guide is helpfull.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/22/14, 9:48 AM|
|Seen: 1110 times|
|Last updated: 3/16/15, 8:10 AM|