Skip to Content
मेन्यू
This question has been flagged
1 Reply
3711 Views

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

Hello, did you find a solution for this issue ?

Avatar
Discard
Related Posts Replies Views Activity
1
अप्रैल 25
3199
3
अप्रैल 17
2713
0
अप्रैल 17
5272
2
मार्च 19
3131
0
अक्तू॰ 15
9569