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
|
3475 | ||
What is wizard ?
해결 완료
|
|
3
11월 23
|
32831 | |
|
2
12월 23
|
17834 | ||
|
6
4월 18
|
21559 | ||
|
5
12월 23
|
18395 |
return {'type': 'ir.actions.act_window_close'} this actually closes the wizard
Did you find the solution for this?