跳至内容
菜单
此问题已终结
1 回复
10263 查看

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
1653
2
8月 23
43008
1
4月 24
2077
5
8月 23
57328
7
12月 23
26128