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

I have a problem in my module... I need to save my model (lets call this Model_A) after filling a form raising for a wizard. The explanation is: I have a module that has a button which raises a wizard , so, when i press that button it saves the Model_A before and then raises the wizard. The problem is that i need to fill some fields in the wizard form, save it, close the wizard, and after that save Model_A by clicking on the save button. Any suggestion? I already tried by overriding the create function and returning False, None, an empty dictionary... I tried the solution given on the below link [1] but it doesn't work for me. Iam working with Odoo V8.

  [1]: https://stackoverflow.com/questions/31963214/odoo-prevent-button-from-closing-wizard


아바타
취소
베스트 답변

Hi Osmani,

Normal way it won't work as you expect. You need to create a web (just like Create / Save) button and bind it with the JS click event. From the JS function, you can open your wizard without saving your existing record.

아바타
취소
베스트 답변

Replacing vals with blank dictionary(not always but based on some condition) should work but wont suggest to do so  as explained in \https://github.com/odoo/odoo/issues/26527

아바타
취소
관련 게시물 답글 화면 활동
2
4월 19
9881
3
6월 19
5429
1
3월 15
7066
3
2월 24
12830
1
8월 20
5441