コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3686 ビュー

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
3149
3
4月 17
2676
0
4月 17
5244
2
3月 19
3096
0
10月 15
9512