Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3659 Vizualizări

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)
Imagine profil
Abandonează
Cel mai bun răspuns

Hello, did you find a solution for this issue ?

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
apr. 25
3138
3
apr. 17
2651
0
apr. 17
5222
2
mar. 19
3077
0
oct. 15
9503