[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:
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user