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

Hey there! I have 2 models: "tickets" and "partes", both are related with "one2many" fields. I want to create a "parte" from a "ticket", so when I click to "create a new one", I want to pre-fill the field in "parte" to relate it to "ticket.name". I tried sending it by context like this:

Model "ticket":


name="parte_gf" context="{'default_ticket_bueno': name}"



But it seems like it's filtering, and that's not what I want. I want to pre-fill the field. Thanks for the help.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 15
6387
2
thg 10 23
2313
1
thg 3 21
2394
3
thg 9 23
5112
2
thg 1 20
8384