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

Hello I have the following question,

 

On my odoo 8 website I have placed the product ean13 barcode on the product page with the code:

<p t-esc="product.ean13" class="text-muted" />

And this works, but it only will show the barcode for one size (it will not change), we use variants for the sizes and I would like to have it change to the barcode connected to the variant. I know where it is (product.product) but the code below will make the website fail.

<p t-esc="product.product.ean13" class="text-muted" />

Does anybody know how to make this work?

Thanks in advance.

Regards,

Remco

Awatar
Odrzuć
Najlepsza odpowiedź

Anyone has a suggestion/solution for this? We're facing the exact same problem. 

<p t-esc="product.barcode" class="text-muted" />

Is returning the barcode once and won't change after selecting another product variant on the website.

Thanks in advance!



Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 23
2226
3
kwi 25
2129
2
sty 25
3229
2
lis 24
1589
1
lis 24
1809