Skip to Content
Menu
This question has been flagged
1 Atsakyti
3837 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
3476
3
bal. 17
2932
0
bal. 17
5415
2
kov. 19
3294
0
spal. 15
9766