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
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'}
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
0
4월 26
|
12 | |||
|
0
4월 26
|
8 | |||
|
1
2월 24
|
4101 | |||
|
1
12월 22
|
5371 | |||
|
What is wizard ?
해결 완료
|
3
11월 23
|
36993 |
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?