تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3488 أدوات العرض

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!



الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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.


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 15
9903
1
أغسطس 25
138
1
أغسطس 25
296
4
يوليو 25
1631
1
يوليو 25
920