[IMP] improve code

bzr revid: rgaopenerp-20121012063004-cdgbq4w4pa1io9u2
This commit is contained in:
RGA(OpenERP) 2012-10-12 12:00:04 +05:30
parent 4ee77c6058
commit 25ac221a0f
1 changed files with 5 additions and 5 deletions

View File

@ -3609,11 +3609,11 @@ instance.web.form.One2ManyDataSet = instance.web.BufferedDataSet.extend({
this.context = this.o2m.build_context([this.o2m.name]);
return this.context;
},
default_get: function(fields, options) {
if(!options) options = {}
_.extend(options, {'context':this.get_context()})
return this._super(fields, options).then(this.on_default_get);
},
default_get: function(fields, options) {
options = options || {};
_.extend(options, {'context':this.get_context()});
return this._super(fields, options).then(this.on_default_get);
},
});
instance.web.form.One2ManyListView = instance.web.ListView.extend({