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

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
1818
1
5月 24
1266
2
5月 24
1548
0
5月 22
3365
0
1月 22
1987