i have attribute id
i want to search product by attribute id
product = self.env['product.template'].search([('attribute_ids', 'in', att_id.id)], limit=1)
attibute_ids im using way what will be correct ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i have attribute id
i want to search product by attribute id
product = self.env['product.template'].search([('attribute_ids', 'in', att_id.id)], limit=1)
attibute_ids im using way what will be correct ?
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
2
mag 24
|
2188 | ||
|
|
1
mag 24
|
1769 | ||
|
|
2
mag 24
|
1985 | ||
|
|
0
mag 22
|
3755 | ||
|
|
0
gen 22
|
2350 |
Use [att_id.id] instead of att_id.id