Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
15440 Zobrazení

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šit

Use [att_id.id] instead of att_id.id

Related Posts Odpovědi Zobrazení Aktivita
2
kvě 24
1751
1
kvě 24
1198
2
kvě 24
1433
0
kvě 22
3268
0
led 22
1929