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

So every partner have this fields that I added to list fields in my method. those fields are many2one fields with comodel 'product.category' so they are in the same table. how can I retrieve id's of all this field for a current partner?


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

Hi,

would you like to get current partner field value by key? Then, just use it in brackets.

for field in fields:    
    print (self[field])

If you want to find ir.model.fields record, just use standard Odoo search by model and field name

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 19
2604
1
เม.ย. 17
4954
1
ก.ค. 25
594
Search a message แก้ไขแล้ว
1
ก.พ. 25
1301
0
ก.ย. 23
2247