Odoo QWEB Templates - All You Need To Know
  • /
  • Odoo/
  • Odoo QWEB Templates - All You Need To Know

In today's tutorial, I will discuss all you need to know about QWEB which is the templating engine of Odoo. I will be covering from basic to advanced functionalities on how to implement QWEB Templates both from Python and Javascript code.

At the end of this tutorial, we will complete all these functionalities including basics, attributes, templates, etc. In the last part, I will be showing you how you can implement QWEB using Javascript from the front end as well as using public widgets and OWL Framework.

What is QWEB

Let's have a quick overview of QWEB. As with any other frameworks, they use their templating engine like Blade or Twig for PHP. Jinja for Django, ERB for Ruby, and many more. In the case of Odoo, they built their own templating engine called QWEB.

QWEB is based on XML which will generate HTML elements to be used in creating website pages and PDF Reports. Using QWEB, it is easier to add dynamic content instead of static content like using pure HTML.

Watch Video

Watch the video below to learn more.

Odoo QWEB Templates - All You Need To Know