Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
8171 Представления

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
4824
0
мая 24
1982
1
апр. 24
1998
0
авг. 21
9033
0
июл. 17
2815