Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3511 Widoki

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!



Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 15
9907
1
sie 25
281
1
sie 25
331
4
lip 25
1680
1
lip 25
956