[FIX] server-sourced fields_get has no indirection to the model's fields
previous searchview-controller wrapper method did. Remove leftover indirection deref bzr revid: xmo@openerp.com-20121129103841-6qcl4sctekqmrt2q
This commit is contained in:
parent
bf29cecca3
commit
c7772fdd82
|
@ -1708,7 +1708,7 @@ instance.web.search.Advanced = instance.web.search.Input.extend({
|
|||
new instance.web.Model(this.view.model).call('fields_get').done(function(data) {
|
||||
self.fields = _.extend({
|
||||
id: { string: 'ID', type: 'id' }
|
||||
}, data.fields);
|
||||
}, data);
|
||||
})).done(function () {
|
||||
self.append_proposition();
|
||||
});
|
||||
|
|
|
@ -178,9 +178,9 @@ var makeSearchView = function (instance, dummy_widget_attributes, defaults) {
|
|||
return [];
|
||||
};
|
||||
instance.session.responses['dummy.model:fields_get'] = function () {
|
||||
return {fields: {
|
||||
return {
|
||||
dummy: {type: 'char', string: 'Dummy'}
|
||||
}};
|
||||
};
|
||||
};
|
||||
|
||||
var dataset = {model: 'dummy.model', get_context: function () { return {}; }};
|
||||
|
|
Loading…
Reference in New Issue