Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3716 Zobrazení

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
Zrušit
Nejlepší odpověď

Hello, did you find a solution for this issue ?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 25
3205
3
dub 17
2713
0
dub 17
5272
2
bře 19
3132
0
říj 15
9570