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

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
1910
1
5月 24
1392
2
5月 24
1636
0
5月 22
3495
0
1月 22
2077