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

Hi, I having a one2many field in that field i add 4 items using Add an Item then Save&New, before saving the record in Parent table, i want some field values. how to get this.

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

You can override create function. The record created will be in the 'vals' param of create, then you can modify it and then call super.
Hope it helps you.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
1849
2
thg 9 22
9598
2
thg 4 22
4642
0
thg 7 21
7289
1
thg 3 21
5024