Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
6729 Weergaven

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

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur Beste antwoord

It works!

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

Thank you!

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
mei 21
6264
0
aug. 22
2310
0
mrt. 15
3266
1
jun. 25
3033
0
dec. 24
51