Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
10292 Представления

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
1675
2
авг. 23
43029
1
апр. 24
2103
5
авг. 23
57339
7
дек. 23
26151