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

hi guys, I want to show a field in the res.partner form view but the field is in another object. How can i do to show it in that view? Thanks a lot for your answers

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You must define a field type function in res.partner. and in this function get information in another object.

def _get_other(self,cr,uid,ids,field,arg,context=None):       
       res={}
       //your treatment
       return res

_columns = {
          'other': fields.function(_get_other, method=True, type='float',string='Info other'),
          }

Thank You.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ม.ค. 24
24048
Attrs attribute แก้ไขแล้ว
2
ม.ค. 24
2970
0
ส.ค. 23
2819
Not displaying the form and tree view แก้ไขแล้ว
5
ก.ย. 21
18258
3
ม.ค. 21
18661