[FIX] fix a crash with create popup forms (web client)
it was trying to call the forme 'hide' method on the searchview. To solve the problem, I readded the method (and renamed it to do_hide for consistency with views)
This commit is contained in:
@@ -784,6 +784,12 @@ openerp.Widget = openerp.Class.extend(openerp.PropertiesMixin, {
|
||||
return this.$el;
|
||||
return this.$el.find(selector);
|
||||
},
|
||||
do_show: function () {
|
||||
this.$el.show();
|
||||
},
|
||||
do_hide: function () {
|
||||
this.$el.hide();
|
||||
},
|
||||
/**
|
||||
* Proxies a method of the object, in order to keep the right ``this`` on
|
||||
* method invocations.
|
||||
|
||||
@@ -5368,7 +5368,7 @@ instance.web.form.SelectCreatePopup = instance.web.form.AbstractFormPopup.extend
|
||||
},
|
||||
new_object: function() {
|
||||
if (this.searchview) {
|
||||
this.searchview.hide();
|
||||
this.searchview.do_hide();
|
||||
}
|
||||
if (this.view_list) {
|
||||
this.view_list.do_hide();
|
||||
|
||||
Reference in New Issue
Block a user