Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4111 Weergaven

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
4
aug. 15
10353
0
mrt. 15
3962
2
jan. 24
12822
2
mrt. 15
4894
0
nov. 23
1389