Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4248 Zobrazení

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
Zrušit
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 Odpovědi Zobrazení Aktivita
4
srp 15
10545
0
bře 15
4177
2
led 24
13006
2
bře 15
5020
0
lis 23
1476