Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
15566 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 24
1875
1
พ.ค. 24
1352
2
พ.ค. 24
1597
0
พ.ค. 22
3431
0
ม.ค. 22
2024