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 /addons/procurement/procurement_view.xml | |
| 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 'addons/procurement/procurement_view.xml')
| -rw-r--r-- | addons/procurement/procurement_view.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml index edd82160025..400412298cc 100644 --- a/addons/procurement/procurement_view.xml +++ b/addons/procurement/procurement_view.xml @@ -106,7 +106,7 @@ <filter icon="terp-emblem-important" string="Temporary" name="temp_exceptions" domain="[('state','=','exception'),('message', '=', '')]" help="Temporary Procurement Exceptions"/> <separator orientation="vertical"/> <filter icon="terp-gnome-cpu-frequency-applet+" string="Late" - domain="['&', ('date_planned::date','<', current_date), ('state', 'in', ('draft', 'confirmed'))]" + domain="['&', ('date_planned','<', current_date), ('state', 'in', ('draft', 'confirmed'))]" help="Procurement started late" /> <separator orientation="vertical"/> <field name="origin"/> |
