Skip to Content
Menu
This question has been flagged

I want to know how Odoo framework is communicate with native languages python, XML, html, JavaScript etc...

Also the PostgreSQL database.

For ORM ,API and database i know things pretty much .Most of the things are coded in BaseModel and other server side files 

like model.py  ,orm.py and fields.py . That clears how framework works with python and PostgreSQL.

Now where i am struggling is the Web Framework,I can't understand how frame work is dealing with javascript and XMl or HTML,CSS. For examlple ,when i write :

<field name="name"/> it will add text input element view ,so how odoo identify that behavior of field tag is such that it adds a text input .

or other example :

When i create a record in ir.ui.view is adds different view in odoo. So how i can understand the behavior  of this concept.

what if i want customization at level where i need to change behavior of this element to meet the client needs.or introduce some new elements. 

If i want to understand odoo framework from the perspective of a native language developer like java or C# .where would i find suitable documentation.Or if documentation is not there, so what things should i be looking in odoo source code to understand this things,.

Avatar
Discard
Best Answer

Bhavik,

like your query will try to keep my reponse clear n specific ;)

"Now where i am struggling is the Web Framework,I can't understand how frame work is dealing with javascript and XMl or HTML,CSS. For examlple ,when i write :"

-> with regards to Javascript it uses some jquery libraries major of them are underscore.js and backbone.js n mostly the  whole system works on backbone.js framework, w.r.t underscore.js in simple term "it is a kind of supporting actor to minimize your data manipulations burden" , so a walkthrough here could help you to undrestand the flow..

-> regarding views everything is rendered from xml templates which could be found web/static/src/xml/base.xml and base_common.xml, etc...(mostly in web module only)

Now there are seperate jquery(backbone) classes created for different kinds of views which could be found at web/static/src/js/views/tree_view.js(for tree view) or form_view.js(for form view), etc(graph_view.js, list_view.js,....)....

and more of it on "how odoo works", its functionality like save/editing of data, sessions manipulations, models(classes) , registry, and other common utilities can be found at web/static/src/js/framework/

in brief i can say the answer for most your query regarding "Web Framework" could be found here in "web" module... explore it and you can hit the odoo client end very easily...
Hope it will give u some reference to your query..

Avatar
Discard
Author

Really helpful !Thank you Pawan ! I appreciate !

Author

Pawan! Can you share your contact details?

u can contact on my skype id: feeldfeelings

Author

Thank you Pawan!

Author

Pawan Can you tell me where XML schema is defined in odoo? i mean XML does not have predefined tags,we have to define those tag,so where records,fields,act_view,menu such tags are defined in odoo?

Bhavik can u be more clear, if its regarding base xml then i already mentioned predefined/base xml for different base views can be found in web/static/src/xml/base.xml

Related Posts Replies Views Activity
2
Feb 24
1243
1
May 19
4152
0
Dec 24
1066
0
Aug 24
3750
2
May 23
6824