Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
10350 Переглядів

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.

Related Posts Відповіді Переглядів Дія
1
жовт. 24
1723
2
серп. 23
43085
1
квіт. 24
2132
5
серп. 23
57385
7
груд. 23
26222