İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2693 Görünümler

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?


Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 19
2512
1
Nis 17
4807
1
Tem 25
395
Search a message Çözüldü
1
Şub 25
1213
0
Eyl 23
2158