summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2014-11-04 10:40:17 +0100
committerGéry Debongnie <ged@odoo.com>2014-11-04 11:08:51 +0100
commit24048648da1981eb489053e45a812f82acc8d081 (patch)
tree9a6b375623231c4290fb15428522c1e147103db1 /addons/web/static/src/js
parenta1fa667be55073b7bbe48a3f2fb5221d687817b1 (diff)
[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)
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/openerpframework.js6
-rw-r--r--addons/web/static/src/js/view_form.js2
2 files changed, 7 insertions, 1 deletions
diff --git a/addons/web/static/src/js/openerpframework.js b/addons/web/static/src/js/openerpframework.js
index fb5ae0d200a..29ad9160653 100644
--- a/addons/web/static/src/js/openerpframework.js
+++ b/addons/web/static/src/js/openerpframework.js
@@ -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.
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index 971f3622b94..7156fdaba5d 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -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();