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

I want to override the crm.meeting.read() method into a custom module but the method is inherited from calendar.event and she use some function define in base_calendar.py file.

How can I import without rewrite this method from base_calendar module to my custom module?

アバター
破棄
最善の回答

Hi,

you can use pool object:

  calendar_event_pool = self.pool.get('calendar.event')
  #call any method in calendar.event
  calendar_event_pool.name_of_method(cr, uid, ids,others...)
アバター
破棄
著作者

I tried this but the method is out of the class definition. It's a global function.

関連投稿 返信 ビュー 活動
1
10月 24
1665
2
8月 23
43020
1
4月 24
2094
5
8月 23
57333
7
12月 23
26143