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

Hallo

In sale_order_line I would like to override the default value of state field with a computed one (that is, not a fixed pre-determined one), based on state field of parent sale_order.

Which way should I go for? 

Can I refer to a field of a parent model within the default_get?


Avatar
Hylkää
Tekijä

I found an interesting starting point: https://www.odoo.com/forum/help-1/question/use-default-get-with-field-related-and-get-id-from-parent-22476

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
4
elok. 15
10333
0
maalisk. 15
3938
2
tammik. 24
12804
2
maalisk. 15
4881
0
marrask. 23
1373