跳至內容
選單
此問題已被標幟
15736 瀏覽次數

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
2042
1
5月 24
1595
2
5月 24
1818
0
5月 22
3641
0
1月 22
2227