fix: not overwriting the existing object references with the result of the include

pull/4/head
Nicolas JEUDY 2013-11-30 09:28:53 +01:00
parent 11fee2087e
commit dfc2ff2ba6
1 changed files with 2 additions and 2 deletions

View File

@ -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) ||