Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 5 19
4406
2
thg 9 17
4339
0
thg 7 22
3108
0
thg 2 21
2060
0
thg 11 17
4472