diff options
| author | Géry Debongnie <ged@odoo.com> | 2014-11-04 10:40:17 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2014-11-04 11:08:51 +0100 |
| commit | 24048648da1981eb489053e45a812f82acc8d081 (patch) | |
| tree | 9a6b375623231c4290fb15428522c1e147103db1 /addons/web/static/src/js/openerpframework.js | |
| parent | a1fa667be55073b7bbe48a3f2fb5221d687817b1 (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/openerpframework.js')
| -rw-r--r-- | addons/web/static/src/js/openerpframework.js | 6 |
1 files changed, 6 insertions, 0 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. |
