Skip to Content
Menú
This question has been flagged
15763 Vistes

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 ?

Avatar
Descartar

Use [att_id.id] instead of att_id.id

Related Posts Respostes Vistes Activitat
2
de maig 24
2052
1
de maig 24
1621
2
de maig 24
1831
0
de maig 22
3654
0
de gen. 22
2236