跳至内容
菜单
此问题已终结
4098 查看

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?


形象
丢弃
编写者

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

相关帖文 回复 查看 活动
4
8月 15
10344
0
3月 15
3953
2
1月 24
12815
2
3月 15
4889
0
11月 23
1384