تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
10323 أدوات العرض

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?

الصورة الرمزية
إهمال
أفضل إجابة

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...)
الصورة الرمزية
إهمال
الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أكتوبر 24
1696
2
أغسطس 23
43059
1
أبريل 24
2114
5
أغسطس 23
57355
7
ديسمبر 23
26205