تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5016 أدوات العرض

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


الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
مايو 19
4387
2
سبتمبر 17
4318
0
يوليو 22
3074
0
فبراير 21
2019
0
نوفمبر 17
4451