跳至内容
菜单
此问题已终结
15535 查看

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 ?

形象
丢弃

Use [att_id.id] instead of att_id.id

相关帖文 回复 查看 活动
2
5月 24
1854
1
5月 24
1279
2
5月 24
1558
0
5月 22
3395
0
1月 22
2001