Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3720 Prikazi

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

Hello, did you find a solution for this issue ?

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
apr. 25
3217
3
apr. 17
2715
0
apr. 17
5275
2
mar. 19
3136
0
okt. 15
9571