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'}
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
1
jouluk. 22
|
3455 | ||
What is wizard ?
Ratkaistu
|
|
3
marrask. 23
|
32704 | |
|
2
jouluk. 23
|
17808 | ||
populate wizard form dynamically
Ratkaistu
|
|
6
huhtik. 18
|
21525 | |
How To call wizard from python in odoo10
Ratkaistu
|
|
5
jouluk. 23
|
18360 |
return {'type': 'ir.actions.act_window_close'} this actually closes the wizard
Did you find the solution for this?