Skip to Content
Menu
This question has been flagged
1 Atsakyti
2967 Rodiniai

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?


Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
birž. 19
2683
1
bal. 17
5087
1
liep. 25
742
1
vas. 25
1419
0
rugs. 23
2380