跳至内容
菜单
此问题已终结
1 回复
3665 查看

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
3141
3
4月 17
2654
0
4月 17
5222
2
3月 19
3081
0
10月 15
9505