Skip to Content
Menu
This question has been flagged
15469 Zobrazenia

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
Zrušiť

Use [att_id.id] instead of att_id.id

Related Posts Replies Zobrazenia Aktivita
2
máj 24
1811
1
máj 24
1246
2
máj 24
1519
0
máj 22
3331
0
jan 22
1972