I'm using this code in my product template
<p class="codigo_ref"> Ref : <span itemprop="default_code" t-field="product.default_code"/></p>
and it works with a single product but if my product has variants then doesn't render the default_code.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I'm using this code in my product template
<p class="codigo_ref"> Ref : <span itemprop="default_code" t-field="product.default_code"/></p>
and it works with a single product but if my product has variants then doesn't render the default_code.
Hello
we have already developed this feature and uploaded on odoo apps store.
please take a look on the link below.
https://apps.odoo.com/apps/modules/14.0/eq_website_default_code/
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Apr 25
|
828 | ||
|
1
May 24
|
3104 | ||
|
1
Apr 24
|
2044 | ||
|
0
Apr 24
|
1533 | ||
|
1
May 23
|
4550 |
If you are taking the internal reference from product.template, change it product.product and take it from it.
Kevin, were you able to solve this? I'm having a similar problem. I'm assuming you are trying to display this on your website?
Hi,
We are having the same problem, v 12. Any fix?