lp bug: https://launchpad.net/bugs/896909 fixed
bzr revid: nicolas.vanhoren@openerp.com-
20111220154145-wcxb87dfpseitgvj
self._change_int_ext_value(rval);
};
if (value && !(value instanceof Array)) {
- var dataset = new openerp.web.DataSetStatic(this, this.field.relation, self.build_context());
+ // name_get in a m2o does not use the context of the field
+ var dataset = new openerp.web.DataSetStatic(this, this.field.relation, self.view.dataset.get_context());
dataset.name_get([value], function(data) {
real_set_value(data[0]);
}).fail(function() {self.tmp_value = undefined;});