İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
10297 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eki 24
1677
2
Ağu 23
43034
1
Nis 24
2107
5
Ağu 23
57342
7
Ara 23
26162