How to use fields_view_get method in Odoo | Odoo ORM Methods
ฝัง
- เผยแพร่เมื่อ 5 ก.พ. 2025
- How to use fields_view_get() orm method in Odoo, using fields view get override any view and add/remove/update any fields or its attribute and other xml related tags. Please check till end of the discussion you will get information about below questions.
Odoo tutorial source code:
github.com/er-...
How to override any view using Odoo's orm method.
Which method is handle view template in Odoo.
How to add dynamic view in Odoo
How-To Dynamically Modify Your View
How to extend form view using fields view get method
How to extend tree view using fields view get method
How to extend kanban view using fields view get method
How to extend search view using fields view get method
How to extend pivot view using fields view get method
Using this fields view get method user can extend fields as well as attributes.
Previous discussion :-
How to use read_group() method in Odoo
• How to use read_group ...
How to use get_metadata() orm method in Odoo
• How to use get_metadat...
How to use ensure_one() method in Odoo
• How to use ensure_one ...
How to use exists method in odoo
• How to use exists meth...
How to use read method in odoo
• How to use read method...
How to use search_count method in odoo
• How to use search_coun...
How to use search method in odoo
• How to use search meth...
How to use browse method in odoo
• How to use browse meth...
Overview of ORM Method In Odoo.
• Overview of ORM method...
How to override create method in Odoo
• How to override create...
How to override write method in odoo
• How to override write ...
How to override copy method in odoo
• How to override copy m...
How to use orm unlink method in odoo
• How to override unlink...
How to use default_get method in Odoo
• How to use default_get...
How to use name_create orm method in Odoo
• How to use name_create...
How to use search method in odoo
• How to use search meth...
Subscribe - Share - Comment/Suggestion - Enjoy - DonateUS
DonateUS :- ko-fi.com/webl...
#fields_view_get_method #ormfieldsviewgetmethod #ormmethodlist #odoo #openerp
For more discussion about list of Odoo ORM methods (functions), Please check below playlist.
th-cam.com/play/PLAR8TpPnVeTSsvwN1uWd8bcTbvCVAb8gq.html
DonateUS :-
ko-fi.com/weblearns
paypal.me/weblearners
For business inquiry :- inquiryweblearns@gmail.com
Source Code :- github.com/er-harsh-dhaduk/odoo-training
Subscribe - Share - Comment/Suggestion - Enjoy - DonateUS
Very good...
sir having issue in odoo16 i managed to find it ranmed in odoo16 to get_view I have creating my functionality but its not working by default opening form view from kanban or list view
Hi, This method will work on V15 or older version but for V16 or latest having different name get_view. Will upload the session in upcoming days!
Stay tune with us :)
Another great video, thx. But I have one question: In what case would we have to use this rather than editing XML after an inherit?
Hi JFSimon, Please check below main key points.
-> "fields_view_get" method is useful when you need dynamic and programmatic modifications to the view based on specific conditions or requirements.
-> XML inheritance is suitable for making static modifications to existing views, either to extend their functionality or customize their appearance.
In summary, the "fields_view_get" method provides dynamic, runtime modifications to the view, while XML inheritance allows you to make static modifications to existing views through XML files.
good explanation
Thank You :)
Why do I get the error ""Total" field is undefined." in ODOO 17 when repeating the example from this article?
seems Total you used as field name is not valid for that specific model.
Hi in fields_view_get function have change any field's string base on any other field's value of same form view ??
which Odoo version are you using ?
Please elaborate more on it
@@Weblearns
V13
@@Weblearns like I put down two custom fields 1. TCS and tds so if user add TCS value the change string total to with TCS total and if user put down TDS value the total string change to 'with TDS total'.. and that scenario need in only in bill.
Hi Parth,
TCS or TDS value change from front endside
or
backend side record already created with TCS or TDS and after you need to show such changes in frontend side?
@@Weblearns
Frontend side
Once user open record and if TCS value exists in bill then show TOTAL string as a
'TOTAL WITH TCS' if TDS value exists then open vendor bill record then string is 'TOTAL WITH TDS' and if both not set then show string as TOTAL just like default so it is possible via fields view get?
Is it also possible to add column dynamically in one2many fields?
Hi Lawrence,
Yes its possible using default get method.
th-cam.com/video/HiFRydHXdC0/w-d-xo.html
Please check this session for more information.
Thank You
@@Weblearns I watched the video but the video can't use a on2many example.
I am struggling in dynamic column in treeview of one2many
@@lawrencelanzaderas7401 Yes that specific logic not available but you can refer this link for your specific need.
stackoverflow.com/questions/38928685/set-default-values-for-one2many-field
In case you solve your issue, it would be good you can share here.
@@Weblearns Thank you. Anw can you please make a tutorials on how to add new fields using fields_view_get? On your video is only label is added. Can additional fields is possible?
PS: your vids is helpful.
Hi its there might be you didn't check full discussion.
Label and Field both there. :)
how to make all fields in form view read only in specific state using this function?
Well that's not possible to use this method specific to your requirement!
this does not work when switching between records that main issue
Correct!
sir ,please give video for Total age
Please check this one.
th-cam.com/video/497t2DgeplI/w-d-xo.html
Sir, Please Send me the video link for Student age calculation
Here you go
th-cam.com/video/497t2DgeplI/w-d-xo.html
@@Weblearns thank you sir