Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
15471 Prikazi

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
Opusti

Use [att_id.id] instead of att_id.id

Related Posts Odgovori Prikazi Aktivnost
2
maj 24
1811
1
maj 24
1246
2
maj 24
1519
0
maj 22
3332
0
jan. 22
1974