Skip to Content
Menu
This question has been flagged
2 Replies
2923 Views

Hello there,


I was wondering if someone can help me understand the difference between widgets and components.

I know that components are building blocks of the OWL framework. They are parts of the user interface that can be reused in different views.

I read that widgets are kind of the same. However, I would like to be able to distinguish them and to know when to apply the one or the other.

Thanks!



Avatar
Discard
Best Answer

Hi,

Please go through the blog to have a better understanding on why odoo changed the old framework using widgets to the new OWL framework and to know its use cases.

Introduction to Odoo OWL Framework

Regards

Avatar
Discard
Best Answer

Odoo 14 is a bit unique for the backend web client compared to other Odoo versions. It contains two different frameworks to maintain the GUI of the Odoo backend. The first one is the widget-based legacy framework, and the second one is the component-based modern framework called the Odoo Web Library (OWL). OWL is the new UI framework introduced in Odoo v14. Both use QWeb templates for structure, but there are significant changes in the syntax and the way those frameworks work.

Although Odoo 14 has a new framework OWL, Odoo does not use this new framework everywhere. Most of the web client is still written with the old widget-based framework. In this chapter, we will see how to customize the web client using a widget-based framework. In the next chapter, we will look at the OWL framework.

In this chapter, you will learn how to create new field widgets to get input from users. We will also be creating a new view from scratch. After reading this chapter, you will be able to create your own UI elements in the Odoo backend.


Avatar
Discard
Related Posts Replies Views Activity
1
May 15
9524
1
May 25
94
0
May 25
259
1
May 25
475
1
May 25
551