Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
10335 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 24
1705
2
aug. 23
43071
1
apr. 24
2116
5
aug. 23
57362
7
dec. 23
26211