Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
maj 19
4387
2
wrz 17
4313
1
lip 20
5009
0
lis 17
4449
0
cze 25
665