Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5080 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ค. 19
4424
2
ก.ย. 17
4364
0
ก.ค. 22
3140
0
ก.พ. 21
2079
0
พ.ย. 17
4490