Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
maj 19
4385
2
sep. 17
4312
1
jul. 20
5007
0
nov. 17
4444
0
jun. 25
645