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

i want to filter some data in standart odoo calendar app. I need to dont show events, that is private for users, who dont participate that event, i can do this by adding new filter in views and adding:


domain="['|', ('privacy','=','public'), '&' ,('partner_ids.user_ids', 'in', [uid]), ('privacy', '=', 'private')]"


but problem is, that this filter is visible and any user can turn it off.

How can i do the same on server level, maybe in models.py file? or there is way to hide this filter but leave it active? i tried also white this filter in views:


record id="action_calendar_event_type" model="ir.actions.act_window">
field name="name">Meeting Types
field name="res_model">calendar.event.type
field name="view_id" ref="view_calendar_event_type_tree"/>
field name="domain">['|', ('privacy','=','public'), '&' ,('partner_ids.user_ids', 'in', [uid]), ('privacy', '=', 'private')]
/record>


but it doesnt work for me

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ค. 19
4386
2
ก.ย. 17
4312
Add and event to calendar แก้ไขแล้ว
1
ก.ค. 20
5009
0
พ.ย. 17
4446
0
มิ.ย. 25
652