Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Need document to Understanding Odoo Framework in context to Native Languages used in development!

By
bhavik-browseinfo
on 8/23/16, 2:13 AM 411 views

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,.

2

Pawan

--Pawan--
1267
| 4 3 5
Hyderabad, India
--Pawan--


Pawan
On 8/23/16, 3:18 AM

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..

Really helpful !Thank you Pawan ! I appreciate !

bhavik-browseinfo
on 8/23/16, 3:42 AM

Pawan! Can you share your contact details?

bhavik-browseinfo
on 8/23/16, 4:18 AM

u can contact on my skype id: feeldfeelings

Pawan
on 8/23/16, 5:50 AM

Thank you Pawan!

bhavik-browseinfo
on 8/23/16, 6:16 AM

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-browseinfo
on 8/24/16, 6:10 AM

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

Pawan
on 8/25/16, 4:12 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 8/23/16, 2:13 AM
Seen: 411 times
Last updated: 8/23/16, 4:30 AM