Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3663 Visualizações

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)
Avatar
Cancelar
Melhor resposta

Hello, did you find a solution for this issue ?

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
abr. 25
3140
3
abr. 17
2653
0
abr. 17
5222
2
mar. 19
3079
0
out. 15
9505