Skip to Content
Menu
This question has been flagged
1 Reply
2694 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?

Avatar
Discard
Best Answer

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

Avatar
Discard