Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
4869 Tampilan

Hello,

I use odoo 8, i have a wizard and a product_id filed in this wizard, i want to to close wizard on onchange function for product_id field.

Thanks

Avatar
Buang

return {'type': 'ir.actions.act_window_close'} this actually closes the wizard

Did you find the solution for this?

Penulis Jawaban Terbai

Thansk, but it only work when you click on a button but not with onchange on a filed

Avatar
Buang
Jawaban Terbai

@api.onchange('product_id')
def onchange_product_id(self):
    if self.product_id:
        return {'type': 'ir.actions.act_window_close'}

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 22
3327
What is wizard ? Diselesaikan
3
Nov 23
32261
2
Des 23
17659
6
Apr 18
21334
5
Des 23
18218