Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
551 มุมมอง

In my (inherited) crm.lead model, I have a one2many field called presales_ids.

I want all presales_ids records to visible to all users who have access to the lead.

However, in the presales model list view, I want to restrict the visibility of records based on the user group. Using record rules will hide these records from the presales users viewing the lead form as well.

How can I do this?


Odoo v18 Community Edition

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Use the groups attribute in your view on the field in question, i.e.

<field name="presales_ids" groups="[module].[group_name]"/>
อวตาร
ละทิ้ง
ผู้เขียน

I don't want to restrict visibility of the one2many presales_ids field on the lead.
I want to restrict visibility of presales records in the list view of the presales model.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 25
552
1
มิ.ย. 25
696
1
มิ.ย. 25
518
1
ก.ค. 25
414
3
ก.ค. 25
783