Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
10283 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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...)
Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 24
1667
2
thg 8 23
43022
1
thg 4 24
2095
5
thg 8 23
57334
7
thg 12 23
26144