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?
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?
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
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
1
juni 19
|
3922 | |||
|
1
apr. 17
|
6227 | |||
|
1
juli 25
|
3091 | |||
|
Search a message
Löst
|
1
feb. 25
|
3073 | ||
|
0
sep. 23
|
3773 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.