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'}
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
1
12月 22
|
4259 | |||
|
What is wizard ?
已解決
|
3
11月 23
|
34404 | ||
|
2
12月 23
|
18644 | |||
|
6
4月 18
|
22385 | |||
|
5
12月 23
|
19065 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
return {'type': 'ir.actions.act_window_close'} this actually closes the wizard
Did you find the solution for this?