Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1334 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 22
3566
What is wizard ? Đã xử lý
3
thg 11 23
32991
4
thg 7 25
5072
2
thg 12 23
17903
6
thg 4 18
21624