diff options
| author | Olivier Dony <odo@openerp.com> | 2011-09-24 02:55:47 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-09-24 02:55:47 +0200 |
| commit | 253eaa462d3773a6d0cc820ac244df0d4e0c5a67 (patch) | |
| tree | 1fef9c6343af02641bdf080dee6465a4e49a6252 /python25-compat | |
| parent | ccc56996dda8472ecab6e5a71d3cb9ad2ba272cc (diff) | |
[FIX] fix useless and invalid casts in domain fields
The ORM will automatically append 00:00:00 to a date
literal that is being compared with a timestamp field
with operators '>' or '>=', and 23:59:59 if compared
with operators '<' or '<='.
So a trivial domain for 'Today' is:
[('tstamp_field','>=',current_date),('tstamp_field','<=',current_date)]
taking advantage of the current_date helper that
is defined as the current date in YYYY-MM-DD format.
bzr revid: odo@openerp.com-20110924005547-pvgblte6r14so7mw
Diffstat (limited to 'python25-compat')
0 files changed, 0 insertions, 0 deletions
