Browse Source

fix: use include instead of extend in js function inheritance.

pull/4/head
Nicolas JEUDY 11 years ago
parent
commit
11fee2087e
  1. 4
      web_m2x_options/static/src/js/form.js

4
web_m2x_options/static/src/js/form.js

@ -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.extend({
instance.web.form.FieldMany2One = 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.extend({
instance.web.form.FieldMany2ManyTags = 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…
Cancel
Save