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

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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..

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

It works!

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

Thank you!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 21
6351
0
thg 8 22
2342
0
thg 3 15
3325
1
thg 6 25
3130
0
thg 12 24
51