Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4016 Vues

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
Ignorer
Meilleure réponse

Hello, did you find a solution for this issue ?

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
avr. 25
3792
3
avr. 17
3147
0
avr. 17
5598
2
mars 19
3517
0
oct. 15
10028