Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5235 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ

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?

Câu trả lời hay nhất

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/

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 25
1410
1
thg 5 24
4501
1
thg 4 24
2844
0
thg 4 24
2091
1
thg 5 23
5235