[FIX]: get context value in one2many
bzr revid: atp@tinyerp.com-20121011120534-bo57y7m667hshuz5
This commit is contained in:
committed by
Atul Patel (OpenERP)
parent
f44ea704fe
commit
4ee77c6058
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user