Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4080 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ส.ค. 15
10335
0
มี.ค. 15
3949
2
ม.ค. 24
12809
2
มี.ค. 15
4884
0
พ.ย. 23
1378