[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:
Géry Debongnie
2014-11-04 11:08:51 +01:00
parent a1fa667be5
commit 24048648da
2 changed files with 7 additions and 1 deletions
@@ -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.
+1 -1
View File
@@ -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();