From af36854aa217f092d777210cb1cb18e4f195d44c Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 24 Feb 2012 16:57:41 +0100 Subject: [PATCH] [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 --- addons/web_diagram/static/src/js/diagram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_diagram/static/src/js/diagram.js b/addons/web_diagram/static/src/js/diagram.js index 0ea7fbe3281..288aec62e6f 100644 --- a/addons/web_diagram/static/src/js/diagram.js +++ b/addons/web_diagram/static/src/js/diagram.js @@ -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; }); });