Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3696 Tampilan

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
Buang
Jawaban Terbai

Hello, did you find a solution for this issue ?

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Apr 25
3160
3
Apr 17
2683
0
Apr 17
5256
2
Mar 19
3106
0
Okt 15
9527