[IMP] improve code
bzr revid: rgaopenerp-20121012063004-cdgbq4w4pa1io9u2
This commit is contained in:
parent
4ee77c6058
commit
25ac221a0f
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue