[FIX] typo

bzr revid: al@openerp.com-20120802143349-ezwts1po29r2v9et
This commit is contained in:
Antony Lesuisse 2012-08-02 16:33:49 +02:00
parent 1e973a8151
commit 19b50c4902
7 changed files with 7 additions and 8 deletions

View File

@ -1,2 +1 @@
import res_users
import controllers
import auth_reset_password

View File

@ -35,7 +35,7 @@ class res_users(osv.osv):
('email_uniq', 'UNIQUE (user_email)', 'You can not have two users with the same email!')
]
def _auth_reset_password_secret(self, cr, uid, ids, context=None)
def _auth_reset_password_secret(self, cr, uid, ids, context=None):
uuid = self.pool.get('ir.config_parameter').get_param(cr, uid, 'database.uuid')
res = {
'dbname': cr.dbname,
@ -95,7 +95,7 @@ class auth_reset_password(osv.TransientModel):
raise osv.except_osv('Error', 'Passwords missmatch')
Users = self.pool.get('res.users')
data = Users._auth_reset_password_check_token(self, cr, uid, values['token']):
data = Users._auth_reset_password_check_token(self, cr, uid, values['token'])
if data:
Users.write(cr, 1, data['uid'], {'password': pw}, context=context)
else:

View File

@ -1,4 +1,4 @@
openerp.reset_password = function(instance) {
openerp.auth_reset_password = function(instance) {
var _t = instance.web._t;
instance.web.Login.include({
start: function() {

View File

@ -1,2 +1,2 @@
import res_config
import signup
import auth_signup

View File

@ -8,8 +8,8 @@
'installable': True,
'depends': ['anonymous', 'base_setup'],
'data': [
'auth_signup.xml',
'res_config.xml',
'signup.xml',
],
'js': [
'static/src/js/auth_signup.js',

View File

@ -9,7 +9,7 @@ openerp.auth_signup = function(instance) {
var am = p.action_manager;
am.do_action({
type:'ir.actions.act_window',
res_model: 'signup.signup',
res_model: 'auth.signup',
views: [[false, 'form']],
target: 'new',
name: 'Sign Up'