Skip to Content
Menu
This question has been flagged
1 Atsakyti
3750 Rodiniai

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)
Portretas
Atmesti
Best Answer

Hello, did you find a solution for this issue ?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
bal. 25
3271
3
bal. 17
2763
0
bal. 17
5302
2
kov. 19
3173
0
spal. 15
9600