Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3793 Weergaven

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
Annuleer
Beste antwoord

Hello, did you find a solution for this issue ?

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
apr. 25
3397
3
apr. 17
2871
0
apr. 17
5373
2
mrt. 19
3235
0
okt. 15
9681