From 253eaa462d3773a6d0cc820ac244df0d4e0c5a67 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Sat, 24 Sep 2011 02:55:47 +0200 Subject: [PATCH] [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 --- addons/crm_helpdesk/crm_helpdesk_view.xml | 4 ++-- addons/hr_attendance/hr_attendance_view.xml | 2 +- addons/mrp/mrp_view.xml | 2 +- addons/mrp_operations/mrp_operations_view.xml | 2 +- addons/procurement/procurement_view.xml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/crm_helpdesk/crm_helpdesk_view.xml b/addons/crm_helpdesk/crm_helpdesk_view.xml index 5aea32298b7..f9f5318bfc2 100644 --- a/addons/crm_helpdesk/crm_helpdesk_view.xml +++ b/addons/crm_helpdesk/crm_helpdesk_view.xml @@ -248,13 +248,13 @@ /> diff --git a/addons/hr_attendance/hr_attendance_view.xml b/addons/hr_attendance/hr_attendance_view.xml index 0affdde9e73..7a65ce7f88c 100644 --- a/addons/hr_attendance/hr_attendance_view.xml +++ b/addons/hr_attendance/hr_attendance_view.xml @@ -52,7 +52,7 @@ - + diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 19e25438cad..a344545748c 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -808,7 +808,7 @@ help="Manufacturing Orders which are currently in production."/> diff --git a/addons/mrp_operations/mrp_operations_view.xml b/addons/mrp_operations/mrp_operations_view.xml index a80a1a41a9c..2484345de9a 100644 --- a/addons/mrp_operations/mrp_operations_view.xml +++ b/addons/mrp_operations/mrp_operations_view.xml @@ -140,7 +140,7 @@ domain="[('state','=','pause')]"/> 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 @@