コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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
5月 19
4398
2
9月 17
4330
0
7月 22
3097
0
2月 21
2043
0
11月 17
4464