[FIX]Radicale Odoo Storage : event should take care of context (virtual_id problem)
This commit is contained in:
parent
7b82b4c2d4
commit
cc23a80c19
@ -176,8 +176,10 @@ class Collection(BaseCollection):
|
|||||||
domain = [('partner_ids', '=', pid)]
|
domain = [('partner_ids', '=', pid)]
|
||||||
else:
|
else:
|
||||||
domain = []
|
domain = []
|
||||||
events = cls.odoo.execute_kw('calendar.event', 'search_read',
|
# Needed to ensure context
|
||||||
[domain], {'fields': fields})
|
event_ids = cls.odoo.env['calendar.event'].search(domain)
|
||||||
|
events = cls.odoo.execute_kw('calendar.event', 'read',
|
||||||
|
[event_ids], {'fields': fields})
|
||||||
cls.events = {e['id']: e for e in events}
|
cls.events = {e['id']: e for e in events}
|
||||||
# WARNING: Odoo does not remove from database deleted recurrent events...
|
# WARNING: Odoo does not remove from database deleted recurrent events...
|
||||||
# Should be fixed on Odoo side and will be fixed via 2way here too
|
# Should be fixed on Odoo side and will be fixed via 2way here too
|
||||||
|
Loading…
x
Reference in New Issue
Block a user