Ir al contenido
Menú
Se marcó esta pregunta

Hi,


How can I add an event from 'Calendar.Model' ?

I already extended the model in my custom addon. Now I want to add a very simple event.I don't want to make an rpc call (I already know how to do this). I just want to add a 'static event' : i.e a simple object with date_from, date_to, display_name.

Seems like I should do this in the load function but I don't know how.

 

Regards


Avatar
Descartar
Autor Mejor respuesta

I answer to myself.

Appears the best place to do this, is to extend calendar_renderer._renderEvents.

With this I can show  an event across all Odoo calendars

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
may 19
4387
2
sept 17
4313
0
jul 22
3059
0
feb 21
2011
0
nov 17
4449