Skip to Content
Menú
This question has been flagged
15439 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
1751
1
de maig 24
1196
2
de maig 24
1430
0
de maig 22
3268
0
de gen. 22
1929