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

in a Odoo 14 project, I have a model with a method named as in the subject


I understand this is overriding a method defined on the models.Model class


What is this method for ?

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

Hi,

Please refer to this video to know more about the fields_view_get() method and how to use it.
https://www.youtube.com/watch?v=sJx433tXoAI&ab_channel=CybrosysTechnologies

Hope it helps

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

HI,

This method is responsible for the rendering the views to users, based on the inherit views and access right of the user. If you see its core function inside models.py you can see this:

 "Get the detailed composition of the requested view like fields, model, view architecture"



See: https://www.odoo.com/documentation/14.0/developer/reference/addons/orm.html?highlight=fields_view_get#odoo.models.Model.fields_view_get

Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 25
462
2
يوليو 25
2880
3
يوليو 25
670
1
يونيو 25
2148
1
أغسطس 25
1045