跳至内容
菜单
此问题已终结
2 回复
6762 查看

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!

形象
丢弃
相关帖文 回复 查看 活动
2
5月 21
6329
0
8月 22
2331
0
3月 15
3301
1
6月 25
3076
0
12月 24
51