[IMP] res_users: update login_date instead of date at login.

bzr revid: tde@openerp.com-20120810141234-yntr5ye3evepjakg
This commit is contained in:
Thibault Delavallée 2012-08-10 16:12:34 +02:00
parent 2da4b1b3f5
commit 18f1bd6fb5
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ class users(osv.osv):
AND active FOR UPDATE NOWAIT""",
(tools.ustr(login), tools.ustr(password)))
cr.execute("""UPDATE res_users
SET date = now() AT TIME ZONE 'UTC'
SET login_date = now() AT TIME ZONE 'UTC'
WHERE login=%s AND password=%s AND active
RETURNING id""",
(tools.ustr(login), tools.ustr(password)))