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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 ?
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
2
May 24
|
2181 | ||
|
|
1
May 24
|
1740 | ||
|
|
2
May 24
|
1960 | ||
|
|
0
May 22
|
3743 | ||
|
|
0
Oca 22
|
2326 |
Use [att_id.id] instead of att_id.id