İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3724 Görünümler

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
Vazgeç
En İyi Yanıt

Hello, did you find a solution for this issue ?

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 25
3239
3
Nis 17
2727
0
Nis 17
5288
2
Mar 19
3144
0
Eki 15
9583