콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
5019 화면

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

아바타
취소

return {'type': 'ir.actions.act_window_close'} this actually closes the wizard

Did you find the solution for this?

작성자 베스트 답변

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