summaryrefslogtreecommitdiff
path: root/openerp/sql_db.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2011-09-24 02:55:47 +0200
committerOlivier Dony <odo@openerp.com>2011-09-24 02:55:47 +0200
commit253eaa462d3773a6d0cc820ac244df0d4e0c5a67 (patch)
tree1fef9c6343af02641bdf080dee6465a4e49a6252 /openerp/sql_db.py
parentccc56996dda8472ecab6e5a71d3cb9ad2ba272cc (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 'openerp/sql_db.py')
0 files changed, 0 insertions, 0 deletions