Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
10265 Näkymät

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?

Avatar
Hylkää
Paras vastaus

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...)
Avatar
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
lokak. 24
1655
2
elok. 23
43008
1
huhtik. 24
2080
5
elok. 23
57330
7
jouluk. 23
26131