콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
10455 화면

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
10월 24
1850
2
8월 23
43282
1
4월 24
2258
5
8월 23
57535
7
12월 23
26329