تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2911 أدوات العرض

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!

الصورة الرمزية
إهمال

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

الكاتب

Hi Niyas,

newly created group is assigned to the test user.

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أغسطس 23
6459
1
مارس 22
2882
0
أكتوبر 20
3491
1
سبتمبر 18
5447
2
يناير 24
3357