From f72e9b99194cb4f5d4b21ff82d09ba305ad2e290 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 30 Sep 2015 13:51:39 +0200 Subject: [PATCH] [FIX] web: reintroduce ChangePassword template The template had been previously dropped by mistake. + the validation buttons were not correctly handled and so changing his password was not possible (these buttons must be in the modal footer). --- .../static/src/js/widgets/change_password.js | 4 +-- addons/web/static/src/xml/base.xml | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/widgets/change_password.js b/addons/web/static/src/js/widgets/change_password.js index cded9dc9a4d..a3654e6d0a1 100644 --- a/addons/web/static/src/js/widgets/change_password.js +++ b/addons/web/static/src/js/widgets/change_password.js @@ -13,8 +13,8 @@ var ChangePassword = Widget.extend({ // FIXME var self = this; this.getParent().set_title(_t("Change Password")); var $button = self.$el.find('.oe_form_button'); - $button.appendTo(this.getParent().$buttons); - $button.eq(2).click(function(){ + $button.appendTo(this.getParent().$footer); + $button.eq(1).click(function(){ self.$el.parents('.modal').modal('hide'); }); $button.eq(0).click(function(){ diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 55ccb035735..cae5392cf3b 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -35,6 +35,36 @@ + +
+
+ + + + + + + + + + + + + + + + +
+ + +
+
+
+
+