Skip to Content
Menu
This question has been flagged
3 Replies
5159 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 ....

Avatar
Discard
Author Best Answer

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"/>


Avatar
Discard
Best Answer

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.



Avatar
Discard
Author

No its not working......