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

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
1813
1
5月 24
1248
2
5月 24
1530
0
5月 22
3334
0
1月 22
1979