[FIX] fields.date[time]: context_today()/context_timestamp() should fallback to user...
authorOlivier Dony <odo@openerp.com>
Fri, 11 Jan 2013 17:57:17 +0000 (06:57 +1300)
committerOlivier Dony <odo@openerp.com>
Fri, 11 Jan 2013 17:57:17 +0000 (06:57 +1300)
commit8e5f0e2ce25d846e36a5fdd657034125ded26c8a
tree3512dce47ac9dc206a47d36cc01e28d0362e6747
parentecc56794cd656cde140d41caa50366f23dd0c187
[FIX] fields.date[time]: context_today()/context_timestamp() should fallback to user TZ if context TZ is missing

This takes care of cases where the context is missing,
e.g. for workflow-based operations, and is similar
to the way tools.translate._() falls back to the user
language.

lp bug: https://launchpad.net/bugs/949516 fixed

bzr revid: odo@openerp.com-20130111175717-u8r1t7s8872bz2rx
openerp/osv/fields.py