Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
8183 Переглядів

Hi,

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

Аватар
Відмінити
Найкраща відповідь

        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.

Example:

self.fetch('res.users',['name','company_id'],[['id','=',this.session.uid]]).then(function(users){

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

});

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лист. 24
4841
0
трав. 24
1985
1
квіт. 24
2004
0
серп. 21
9037
0
лип. 17
2817