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
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 :-)
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
4
4月 25
|
3513 | |||
|
2
1月 23
|
6748 | |||
|
12
1月 17
|
16712 | |||
|
2
4月 16
|
6035 | |||
|
1
3月 15
|
5021 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.