Odoo Help


Function of the parameter 'context'?

on 5/13/13, 9:37 AM 786 views

Hello, I am new at openERP7, I want to know the function of the parameter 'context'. Thank you for your answer?



| 6 5 8
Delhi, India
Python OpenERP Developer http://in.linkedin.com/pub/sandeep-rana/3b/a16/786/
On 5/13/13, 9:45 AM

Hi In OpenERP context is a dictionary parameter used to define default values, which are used many time and some special values you want this is a default parameter ( means you can use send this DIC variable from fuction call or not ) and use to default values like your field name "name" context={'default_name' : 'xyz'}

example : language value context={'lang':'US_en'}

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 5/13/13, 9:37 AM
Seen: 786 times
Last updated: 3/16/15, 8:10 AM