Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Hide/Show Confirm button based on user (Sale Order) ?

By
savita
on 9/10/16, 6:13 AM 166 views

Hi All,

I want to asking something. We are using Odoo9.0 version. In Sale Order Overflow;

For user : I want to hide confirm Sale button.

For Administrator : I want to show confirm Sale button.

Now confirm Sale button showing everyone.(Users and Administrators)

How can get solve this issue?

0
Juan Vicente Pascual
On 9/12/16, 3:20 AM

in xml file, in the confirm button, just add,

<attribute name="groups">base.group_sale_manager</attribute>

 

Kind regards,


0
Abdalla Mohamed
On 9/11/16, 10:19 AM

You can create new group as in this link https://www.odoo.com/forum/help-1/question/how-to-add-a-new-group-for-an-application-odoo-8-73629 and assign it to confirm button by inherit sales order form view and add groups="xml_id_for_group"


Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/10/16, 6:13 AM
Seen: 166 times
Last updated: 9/12/16, 3:20 AM