Skip to Content
Menú
This question has been flagged
1 Respondre
3687 Vistes

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
Descartar
Best Answer

Hello, did you find a solution for this issue ?

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’abr. 25
3151
3
d’abr. 17
2676
0
d’abr. 17
5245
2
de març 19
3096
0
d’oct. 15
9513