Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2662 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jun 19
2500
1
Apr 17
4791
1
Jul 25
379
Search a message Diselesaikan
1
Feb 25
1202
0
Sep 23
2144