Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
15422 Widoki

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 ?

Awatar
Odrzuć

Use [att_id.id] instead of att_id.id

Powiązane posty Odpowiedzi Widoki Czynność
2
maj 24
1735
1
maj 24
1168
2
maj 24
1395
0
maj 22
3240
0
sty 22
1900