Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
10267 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
1
říj 24
1656
2
srp 23
43010
1
dub 24
2083
5
srp 23
57330
7
pro 23
26132