Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
10299 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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...)
Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
paź 24
1678
2
sie 23
43034
1
kwi 24
2109
5
sie 23
57344
7
gru 23
26165