コンテンツへスキップ
メニュー
この質問にフラグが付けられました
15720 ビュー

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
2037
1
5月 24
1564
2
5月 24
1810
0
5月 22
3608
0
1月 22
2219