[FIX]: get context value in one2many

bzr revid: atp@tinyerp.com-20121011120534-bo57y7m667hshuz5
This commit is contained in:
Ravi Gadhia (OpenERP)
2012-10-11 17:35:34 +05:30
committed by Atul Patel (OpenERP)
parent f44ea704fe
commit 4ee77c6058
+6 -1
View File
@@ -3608,7 +3608,12 @@ instance.web.form.One2ManyDataSet = instance.web.BufferedDataSet.extend({
get_context: function() {
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);
},
});
instance.web.form.One2ManyListView = instance.web.ListView.extend({