Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2652 Vizualizări

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?


Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 19
2500
1
apr. 17
4786
1
iul. 25
372
1
feb. 25
1201
0
sept. 23
2143