跳至內容
選單
此問題已被標幟
1 回覆
3655 瀏覽次數

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
3136
3
4月 17
2647
0
4月 17
5221
2
3月 19
3076
0
10月 15
9500