1

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

Kenly
  • 24,317
  • 7
  • 44
  • 60
Selman
  • 274
  • 2
  • 4
  • 17

1 Answers1

2

Product qty_available field is declared in stock module.

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

Kenly
  • 24,317
  • 7
  • 44
  • 60