Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4092 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 8 15
10344
0
thg 3 15
3953
2
thg 1 24
12814
2
thg 3 15
4889
0
thg 11 23
1382