Hello,
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 ?
Thanks,
Mickael
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
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 ?
Thanks,
Mickael
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"/>
with
<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.
Yes possible.
You just create a new view, and you can replace with this methode. This guide is helpfull.
https://doc.odoo.com/6.0/developer/2_6_views_events/views/specify_view_to_use/
Hello Ludo and Klacus,
Thanks for your answer.
Is it possible to : duplicate the invoice view, replace the button and apply my new view to my group ?
If not, could you please describe me how to create a custom module ?
Thanks,
Mickael
Hi Mickael. I refresh the answer. Cheers :-)
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
4
apr 25
|
1048 | ||
|
2
gen 23
|
4630 | ||
|
12
gen 17
|
14149 | ||
|
2
apr 16
|
4019 | ||
|
1
mar 15
|
3600 |