diff --git a/addons/auth_password_policy/static/src/js/password_field.js b/addons/auth_password_policy/static/src/js/password_field.js index 29db6449442..93a623acc1c 100644 --- a/addons/auth_password_policy/static/src/js/password_field.js +++ b/addons/auth_password_policy/static/src/js/password_field.js @@ -21,12 +21,12 @@ var PasswordField = fields.InputField.extend({ }, willStart: function () { var _this = this; - var getPolicy = this._rpc({ + var getPolicy = this.nodeOptions['password_meter'] ? this._rpc({ model: 'res.users', method: 'get_password_policy', }).then(function (p) { _this._meter = new Meter(_this, new policy.Policy(p), policy.recommendations); - }); + }) : undefined; return $.when( this._super.apply(this, arguments), getPolicy