Odoo Help


How to import method from another module?

Bonnet Denis
on 6/10/13, 12:33 PM 2,327 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?

On 6/10/13, 12:55 PM


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...)

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

Bonnet Denis
on 6/10/13, 1:28 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 6/10/13, 12:33 PM
Seen: 2327 times
Last updated: 3/16/15, 8:10 AM