Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6891 มุมมอง

hi,

on the "default" web template I can't see the details about the product availability or "Quantity on hand",

I know this field is product.qty_available, but I don't know how to modify the HTML page to show this field.

Thank you

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

hi.

In the path addond/website_sale/views/template.xml ,you can see

<h1 itemprop="name" t-field="product.name">Product Name</h1> in the line 379.

you just add the following code in before or after the code to see the products avaialble.

 Product On Hand<h1 t-field="product.qty_available"></h1>

then you can see the number of products available on hand..

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

It works!

I had applied those changes online via Odoo HTML editor (it's not required to modify the XML file directly)

Thank you!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 21
6467
0
ส.ค. 22
2390
0
มี.ค. 15
3398
1
มิ.ย. 25
3217
0
ธ.ค. 24
51