From dfc2ff2ba62d5eaa5b2e56f0d31b66c2c0c5336c Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Sat, 30 Nov 2013 09:28:53 +0100 Subject: [PATCH] fix: not overwriting the existing object references with the result of the include --- web_m2x_options/static/src/js/form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_m2x_options/static/src/js/form.js b/web_m2x_options/static/src/js/form.js index 0b5d605b..3eb6d47a 100644 --- a/web_m2x_options/static/src/js/form.js +++ b/web_m2x_options/static/src/js/form.js @@ -8,7 +8,7 @@ openerp.web_m2o_enhanced = function (instance) { _t = instance.web._t, _lt = instance.web._lt; - instance.web.form.FieldMany2One = instance.web.form.FieldMany2One.include({ + instance.web.form.FieldMany2One.include({ show_error_displayer: function () { if ((typeof this.options.m2o_dialog === 'undefined' && this.can_create) || @@ -129,7 +129,7 @@ openerp.web_m2o_enhanced = function (instance) { } }); - instance.web.form.FieldMany2ManyTags = instance.web.form.FieldMany2ManyTags.include({ + instance.web.form.FieldMany2ManyTags.include({ show_error_displayer: function () { if ((typeof this.options.m2o_dialog === 'undefined' && this.can_create) ||