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

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?


Awatar
Odrzuć
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

Powiązane posty Odpowiedzi Widoki Czynność
4
sie 15
10346
0
mar 15
3954
2
sty 24
12815
2
mar 15
4890
0
lis 23
1384