Skip to Content
Menú
This question has been flagged
4085 Vistes

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
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
4
d’ag. 15
10339
0
de març 15
3953
2
de gen. 24
12813
2
de març 15
4887
0
de nov. 23
1381