Odoo Help


How to get the current language in a web module?

on 3/13/13, 3:46 AM 2,824 views


how i can access fields values by java script ?

i tried to get language field value in java script variable, but i failed.

and i tried to know where is the function that retrieve the current language, and i failed too.

so please anyone can help me


Mohammad Alhashash

--Mohammad Alhashash--
| 5 5 8
Giza, Egypt
--Mohammad Alhashash--


Mohammad Alhashash
On 3/13/13, 4:59 AM

The language value should be instance.session.user_context.lang.

please i am new in openerp. so where i can find "instance.session.user_context.lang" and how to put language in alert message

on 3/13/13, 5:28 AM

You need to read the OpenERP web module development guide. instance is sent by OpenERP to web modules during session startup.

Mohammad Alhashash
on 3/13/13, 5:55 AM

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: 3/13/13, 3:46 AM
Seen: 2824 times
Last updated: 3/16/15, 8:10 AM