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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Thansk, but it only work when you click on a button but not with onchange on a filed
@api.onchange('product_id')
def onchange_product_id(self):
if self.product_id:
return {'type': 'ir.actions.act_window_close'}
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
1
Dez. 22
|
3454 | ||
What is wizard ?
Gelöst
|
|
3
Nov. 23
|
32698 | |
|
2
Dez. 23
|
17806 | ||
|
6
Apr. 18
|
21522 | ||
|
5
Dez. 23
|
18359 |
return {'type': 'ir.actions.act_window_close'} this actually closes the wizard
Did you find the solution for this?