mirror of https://github.com/OCA/web.git
fix: not overwriting the existing object references with the result of the include
parent
11fee2087e
commit
dfc2ff2ba6
|
@ -8,7 +8,7 @@ openerp.web_m2o_enhanced = function (instance) {
|
||||||
_t = instance.web._t,
|
_t = instance.web._t,
|
||||||
_lt = instance.web._lt;
|
_lt = instance.web._lt;
|
||||||
|
|
||||||
instance.web.form.FieldMany2One = instance.web.form.FieldMany2One.include({
|
instance.web.form.FieldMany2One.include({
|
||||||
|
|
||||||
show_error_displayer: function () {
|
show_error_displayer: function () {
|
||||||
if ((typeof this.options.m2o_dialog === 'undefined' && this.can_create) ||
|
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 () {
|
show_error_displayer: function () {
|
||||||
if ((typeof this.options.m2o_dialog === 'undefined' && this.can_create) ||
|
if ((typeof this.options.m2o_dialog === 'undefined' && this.can_create) ||
|
||||||
|
|
Loading…
Reference in New Issue