How can I show the stock information in odoo e-shop

87 Views Asked by At

how can I show the stock info on my website in odoo. I made some research and tried the add this to website_sale/views/templates.xml

enter image description here

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

but it's giving me an error when rendering the template

KeyError: 'qty_available'
Template: 1439
Path: /t/t[4]/div/section/div[2]/div[2]/h1[2]
Node: <h1 t-field="product.qty_available" data-oe-xpath="/t[1]/t[4]/div[1]/section[1]/div[2]/div[2]/h1[2]"/>

How can i manage this

1

There are 1 best solutions below

0
On BEST ANSWER

Product qty_available field is declared in stock module.

You need to install the stock module to be able to use it