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 ?
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
|
2
mei 24
|
2187 | ||
|
|
1
mei 24
|
1753 | ||
|
|
2
mei 24
|
1975 | ||
|
|
0
mei 22
|
3746 | ||
|
|
0
jan. 22
|
2339 |
Use [att_id.id] instead of att_id.id