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

I have 2 models


model_A and model_B


There's a One2many relationship among them, meaning one record in model_A can have several related records in model_B


I have a form view on model_A showing, among other things, a list of related records in model_B, like this



In the grid showing the list of related records, there' a "Add line" link


I'd like to customize the action called by clicking that link


Because I'd like to populate some fields in the new model_B record (depending on values in some fields in model_A)


I'm not sure how to do that

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 23
2385
0
thg 3 15
5899
1
thg 8 25
438
0
thg 8 25
251
0
thg 7 25
1265