跳至內容
選單
此問題已被標幟
1 回覆
563 瀏覽次數

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.

相關帖文 回覆 瀏覽次數 活動
1
6月 25
581
1
6月 25
734
1
6月 25
533
1
7月 25
441
3
7月 25
810