Odoo Help


how to read field values using js

on 4/23/14, 6:32 AM 2,071 views


I want to fetch the state of the active_id using java script. can anyone help how to achieve this?

Lithin T
On 7/3/14, 2:22 PM

        fetch: function(model, fields, domain, ctx){
            return new instance.web.Model(model).query(fields).filter(domain).context(ctx).all()

Make use of the above fetch function you can fetch data.



console.log("This is the User",users);


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: 4/23/14, 6:32 AM
Seen: 2071 times
Last updated: 5/4/16, 3:51 AM