Skip to Content
मेन्यू
This question has been flagged
1 Reply
10309 Views

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
Discard
Best Answer

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
Discard
Author

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

Related Posts Replies Views Activity
1
अक्तू॰ 24
1696
2
अग॰ 23
43057
1
अप्रैल 24
2114
5
अग॰ 23
57354
7
दिस॰ 23
26199