Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2786 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 25
283
1
серп. 25
578
2
лип. 25
3028
3
лип. 25
744
1
черв. 25
2240