Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
10476 Vues

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
Ignorer
Meilleure réponse

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

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

Publications associées Réponses Vues Activité
1
oct. 24
1873
2
août 23
43341
1
avr. 24
2279
5
août 23
57566
7
déc. 23
26346