Community mailing list archives

Restrict access to field based on user group

euroblaze - Wapsol GmbH, sai chandra
- 11/24/2016 03:35:32
I would like to restrict the "assignment of task" to project manager and project user can only see whom it is assigned to.
I have tried below as per forum replies but it restricts for everyone

<record model="ir.ui.view" id="eb_pm_view_task_form2"> 
    <field name="name"></field>  
    <field name="model">project.task</field> 
    <field name="inherit_id" ref="project.view_task_form2" /> 
    <field eval="2" name="priority"/> 
    <field name="groups_id" eval="[(6, 0, [ref('project.group_project_user')])]" />  
    <field name="arch" type="xml"> 
    <field name="user_id" position="attributes"> 
        <attribute name="readonly">1</attribute> 

Best Regards,
Sai Chandra Sekhar.M