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

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
1971
1
5月 24
1444
2
5月 24
1710
0
5月 22
3540
0
1月 22
2135