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.

0

How to get the current language in a web module?

By
maladdin
on 3/13/13, 3:46 AM 1,863 views

Hi

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

0

Mohammad Alhashash

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

Developer

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

maladdin
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

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

0 follower(s)

Stats

Asked: 3/13/13, 3:46 AM
Seen: 1863 times
Last updated: 3/16/15, 8:10 AM