Hi,
I'm trying to make a RPC request. I want to select records where name="Smith". I'm using OpenERP 6.1, and I'm building a web module. This code is in a custom widget :
this.rpc('/web/dataset/search_read', {
model: 'people',
fields: field || false,
domain: this.view.domain,
context: { 'name' : 'Smith'},
offset: 0,
limit: false
}).pipe(function (result) {
self.ids = result.ids;
self._length = result.length;
console.log(result.records);
})
I tried to use Context parameters, but it doesn't work, I keep getting all the records in the table. How to do please ?