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

When calling a function without parametter the context is preserved and can be used

@api.multi
def button_print(self):
_logger.info('Context : %s: ', self.env.context)

Calling this function from a button we get a filled context dictionnary.

But calling the same function with a  defined parametter we get an empty context {}

@api.multi
def button_print(self, demo=False):
_logger.info('Context : %s: ', self.env.context)
아바타
취소
베스트 답변

Hello, did you find a solution for this issue ?

아바타
취소
관련 게시물 답글 화면 활동
1
4월 25
3661
3
4월 17
3057
0
4월 17
5546
2
3월 19
3433
0
10월 15
9884