콘텐츠로 건너뛰기
메뉴
신고된 질문입니다

Hi All

I inherited a wizard "account.payment.register" and added a field to it (called X1).

And I inherited a model "account.payment" and added a field to it (called X2).


My question is what the method should I override it and how to pass the vale from X1 to X2


Thank you


아바타
취소
베스트 답변

Pass the field value in the context and prefix the field name with default_ so the field in the payment register wizard will be automatically set for you.

In the following example, we suppose you have a reference (char field) in the account move model and you want to pass its value to the payment wizard, we take into consideration that the action_register_payment method is multi-record (self could be a recordset with multiple account moves)


Regards,
J Wick

아바타
취소
관련 게시물 답글 화면 활동
1
12월 22
3550
What is wizard ? 해결 완료
3
11월 23
32985
4
7월 25
5071
2
12월 23
17897
6
4월 18
21608