콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
8월 23
6458
1
3월 22
2881
0
10월 20
3491
1
9월 18
5444
2
1월 24
3357