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

I want to force and lock the custom search filter in the Contacts module to "My Contacts", and have this extend to all other users.

This should be beyond the "default search" function, as there shouldn't be an "x" (remove) option next to it. I'm assuming this would involve some java edits.

What would be an appropriate approach to this?



อวตาร
ละทิ้ง

Dynamic Add Custom Filter Menu Visibility | Remove Add Custom Filter Menu | Disable Add Custom Filter Menu | Control Access by User Group
This module allows administrators to hide or show the "Add Custom Filter" menu based on user groups, ensuring that only authorized users can apply advanced search filters.
https://apps.odoo.com/apps/modules/16.0/mh_hide_add_custom_filter

คำตอบที่ดีที่สุด

You can define domain in  contact action so user can see only his contacts list.

<field name="domain">[('user_id', '=', user.id)]</field>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I want to lock users not to delete default filters assigned to them so that they cannot view that does not concern to them. How can we do?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 24
1017
2
ม.ค. 24
1750
1
ก.ย. 23
1409
Dynamic date in filters แก้ไขแล้ว
4
เม.ย. 25
11843
0
ก.พ. 25
1418