Skip to Content
Menú
This question has been flagged
1 Respondre
2654 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 19
2500
1
d’abr. 17
4788
1
de jul. 25
372
1
de febr. 25
1201
0
de set. 23
2143