Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
4965 Vues

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
Ignorer

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

Did you find the solution for this?

Auteur Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
déc. 22
3445
3
nov. 23
32672
2
déc. 23
17783
6
avr. 18
21512
5
déc. 23
18353