[FIX] set a single numeric id as the m2o value in the 'new node' popup to force a name_get resolution

with a pair, the field's textual value would get set to 'undefined' leading to inconsistent behavior depending on whether the field is visible or not

bzr revid: xmo@openerp.com-20120224155741-o43tndbmxfsmcub7
This commit is contained in:
Xavier Morel
2012-02-24 16:57:41 +01:00
parent 2adcdd3aad
commit af36854aa2
+1 -1
View File
@@ -238,7 +238,7 @@ openerp.web.DiagramView = openerp.web.View.extend({
_.each(form_fields, function(fld) {
if (!(fld in form_controller.fields)) { return; }
var field = form_controller.fields[fld];
field.set_value([self.id,self.active_model]);
field.set_value(self.id);
field.dirty = true;
});
});