Skip to Content
मेन्यू
This question has been flagged
4 Replies
4879 Views

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
Discard

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

Did you find the solution for this?

Author Best Answer

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
दिस॰ 22
3330
3
नव॰ 23
32270
2
दिस॰ 23
17660
6
अप्रैल 18
21334
5
दिस॰ 23
18220