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

I'm interested of how the saving/writing works on a view that has a One2many list that is editable. The "Save" button is from the parent model, so does it use only the parent models create/write methods or does it also use the child models create/write methods?

I'm trying to compute values from the child model that has its own relations that have stored data and when I edit them the IDs are new object so I need to compute them when I save them so they get the data from the correct related model.

So on what level should I use methods for computing, in the parent create/write methods or the child create/write methods?    

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 22
2191
4
maj 18
11126
0
mar 23
5153
1
lip 20
8495
0
kwi 20
4263