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

Why I can't use api extending res.partner?

아바타
취소

What have you tried? What is the error? Post some code and more information please.

작성자

I tried to make something simple so I can understand how to do it. @api.one def convert_opportunity_to_customer(self): osv.except_osv('Warning!', '!!!!!!!!!!!!!!!!!!!!!') _logger.error(self, 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') raise Exception(self) # return True

작성자

I do not get error it does not compute the method

베스트 답변

Hi Simon,

Have you done the following imports:

from openerp.osv import osv
import logging
_logger = logging.getLogger(__name__)

아바타
취소
베스트 답변

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

아바타
취소
관련 게시물 답글 화면 활동
1
5월 22
2521
0
10월 20
3989
2
6월 18
3670
1
5월 22
2719
5
10월 19
9757