Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2925 Ansichten

Hi,

I need to allow salesperson to see his customer only when he logged in through his account. for that I created a new group and create a record rule.

<record id="customer_only" model="ir.rule">
<field name="name">Own Customer Only</field>
<field ref="base.model_res_partner" name="model_id"/>
<field name="domain_force">['|',('user_id','=',user.id),('user_id','=',False)]</field>
<field name="groups" eval="[(4, ref('module_name.group_id'))]"/>
</record>

but still salesperson can see others salesperson's customers. and their is no other rule applied to the res.partner module.

could anyone help me resolve this.

Thanks in advance!

Avatar
Verwerfen

If there are no other rules for the same model, just make sure that the newly create group is assigned for the logged in user whom you selected to test

Autor

Hi Niyas,

newly created group is assigned to the test user.

Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Aug. 23
6470
1
März 22
2890
0
Okt. 20
3494
1
Sept. 18
5474
2
Jan. 24
3365