Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3377 Näkymät

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?    

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
syysk. 22
2252
4
toukok. 18
11181
0
maalisk. 23
5238
1
heinäk. 20
8529
0
huhtik. 20
4305