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 the "more" pull down menu to specific group?

By
willie ho
on 5/31/15, 10:05 PM 486 views

I want to make a group that can access some pages for reading only

i want to hide the "more" option and "print" option if possible

how to do it?

0
Ankit Gauri
On 6/3/15, 9:22 AM

hi i hope this will help you i m not sure if its possible for more option or not but you can apply group like this


<record id="view_order_form_cust_ref_readonly" model="ir.ui.view">

<field name="name">sale.order.form.readonly.cust</field>

<field name="model">sale.order</field>

<field name="inherit_id" ref="sale.view_order_form"/>

<field name="groups_id" eval="[(6, 0, [ref('base.group_user') ])]"/>

<field name="arch" type="xml">

<field name='client_order_ref'" position="attributes">

<attribute name="attrs">{'readonly':[('state','not in',['draft','sent'])]}</attribute> 

OR <attribute name="readonly" >1</attribute> 

</field>

</field>

</record>


link :http://stackoverflow.com/questions/18912997/how-to-make-field-readonly-based-on-group-and-status

You can check this link also

Thank You

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: 5/31/15, 10:05 PM
Seen: 486 times
Last updated: 6/3/15, 9:26 AM