[FIX] web: keep the context we got in Many2ManyDataset
This bug causes binary fields in many2many lists being presented as a data url, even though bin_size is passed. Closes #6966
This commit is contained in:
parent
26c7ea4de6
commit
f204c76f23
|
@ -4925,6 +4925,10 @@ instance.web.form.FieldMany2Many = instance.web.form.AbstractField.extend(instan
|
||||||
instance.web.form.Many2ManyDataSet = instance.web.DataSetStatic.extend({
|
instance.web.form.Many2ManyDataSet = instance.web.DataSetStatic.extend({
|
||||||
get_context: function() {
|
get_context: function() {
|
||||||
this.context = this.m2m.build_context();
|
this.context = this.m2m.build_context();
|
||||||
|
var self = this;
|
||||||
|
_.each(arguments, function(context) {
|
||||||
|
self.context.add(context);
|
||||||
|
});
|
||||||
return this.context;
|
return this.context;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue