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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jun 19
|
1854 | ||
|
1
Apr 17
|
3973 | ||
|
0
Sep 23
|
1026 | ||
|
2
Jun 23
|
2474 | ||
|
1
Aug 22
|
10780 |