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

How to hide Sales Orders ,Quoation menu from Sales for group_sale_salesman user ?

By
Odoo
on 4/13/16, 12:29 AM 410 views

I tried below code....Its Not working


Need a help...

The second one is working for salesman group.But first one is not working #From @Axel Suggestion
<menuitem name="Quotations" id="sale.menu_sale_quotations" parent="base.menu_sales" groups="-base.group_sale_salesman"/>

<menuitem name="Sales Orders" id="sale.menu_sale_order" parent="base.menu_sales" groups="-base.group_sale_salesman"/>
WHY QUOTATIONS MENU IS NOT HIDING ,I CAN HIDE SALES ORDER MENU ....

0

Odoo

--Odoo --
1328
| 5 2 5
kerala, India
--Odoo --

Working as a Odoo Functional and Technical Expert

Odoo
On 4/15/16, 1:21 AM

Found the solution,may be useful to others.......


This Will Hide Quotation Menu...


<record id="sale.menu_sale_quotations" model="ir.ui.menu">  
 <field name="groups_id" eval="[(3,ref('base.group_sale_salesman'))]"/>
</record>

This Will hide Sale order Menu...


<menuitem name="Sales Orders" id="sale.menu_sale_order" parent="base.menu_sales" groups="-base.group_sale_salesman"/>


0
Antone Colonna
On 4/13/16, 8:16 AM

Maybe you must take a look in groups and add a rule on quotation. I think quotation depends from other object so you need add rules on this object.



No its not working......

Odoo
on 4/15/16, 12:54 AM

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: 4/13/16, 12:29 AM
Seen: 410 times
Last updated: 4/15/16, 1:21 AM