Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
15559 Visninger

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
Kassér

Use [att_id.id] instead of att_id.id

Related Posts Besvarelser Visninger Aktivitet
2
maj 24
1870
1
maj 24
1309
2
maj 24
1585
0
maj 22
3422
0
jan. 22
2011