Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4823 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 25
1835
2
wrz 22
9594
2
kwi 22
4635
0
lip 21
7283
1
mar 21
5019