콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
15646 화면

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
1984
1
5월 24
1448
2
5월 24
1713
0
5월 22
3551
0
1월 22
2140