Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
10333 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 24
1704
2
ส.ค. 23
43069
1
เม.ย. 24
2114
5
ส.ค. 23
57361
Change the string of an inherited field แก้ไขแล้ว
7
ธ.ค. 23
26210