Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
3483 Prikazi

In project management i created 2 groups. I want each group to see only it's records like tasks and projects.

The user should access only it's records and the manager all tasks and projects of the group he belongs to.

Avatar
Opusti
Best Answer

Hi Fawas Panat,

Well, I don't know the technical way. But, I did the same work without technical knowledge.

I use the below third-party module to set up user access rights.

Link: https://apps.odoo.com/apps/modules/16.0/simplify_access_management/

You can apply the domain to see only the respective user's data on any model including third-party in your case it is 'project & task'. Also, you hide the views, menus, Kanban links, buttons, and Tabs to restrict the user.

Thanks


Avatar
Opusti
Best Answer

Dear Fawas,

Please refer below groups for example 

Manager

<record id="sale_order_see_all" model="ir.rule">

        <field name="name">manager/field>

        <field ref="model_sale_order" name="model_id"/>

        <field name="domain_force">[(1,'=',1)]</field>

        <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>

    </record>

User

    <record id="sale_order_personal_rule" model="ir.rule">

        <field name="name">Personal Orders</field>

        <field ref="model_sale_order" name="model_id"/>

        <field name="domain_force">['|',('user_id','=',user.id),('user_id','=',False)]</field>

        <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>

    </record>


change groups for this

 <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jan. 16
5102
3
apr. 24
1411
2
jan. 24
3104
0
jan. 24
1465
1
jul. 23
3020