跳至內容
選單
此問題已被標幟
2 回覆
2732 瀏覽次數

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
8月 25
439
2
7月 25
2871
3
7月 25
662
1
6月 25
2141
1
8月 25
1042