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 :-)
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
4
thg 4 25
|
3513 | |||
|
2
thg 1 23
|
6745 | |||
|
12
thg 1 17
|
16712 | |||
|
2
thg 4 16
|
6035 | |||
|
1
thg 3 15
|
5021 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.