Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
10294 Vizualizări

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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...)
Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
1
oct. 24
1676
2
aug. 23
43029
1
apr. 24
2104
5
aug. 23
57339
7
dec. 23
26154