Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2647 Widoki

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?


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 19
2499
1
kwi 17
4786
1
lip 25
371
Search a message Rozwiązane
1
lut 25
1201
0
wrz 23
2143