From 37e7efddce5fd3e7fc53a3b66582617d7214444c Mon Sep 17 00:00:00 2001
From: "nel@tinyerp.com" <>
Date: Thu, 15 Apr 2010 12:54:31 +0200
Subject: [PATCH] [IMP] Add some fields on search views
bzr revid: nel@tinyerp.com-20100415105431-6rewt2r465q4w2m1
---
addons/hr_recruitment/report/hr_recruitment_report.py | 2 +-
addons/hr_recruitment/report/hr_recruitment_report_view.xml | 2 +-
.../report/hr_timesheet_invoice_report.py | 4 ++--
.../report/hr_timesheet_invoice_report_view.xml | 6 ++++--
addons/purchase/report/purchase_report_view.xml | 2 +-
5 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/addons/hr_recruitment/report/hr_recruitment_report.py b/addons/hr_recruitment/report/hr_recruitment_report.py
index dccaa3dae0e..822e391650d 100644
--- a/addons/hr_recruitment/report/hr_recruitment_report.py
+++ b/addons/hr_recruitment/report/hr_recruitment_report.py
@@ -34,7 +34,7 @@ class hr_recruitment_report(osv.osv):
'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'),
('05','May'), ('06','June'), ('07','July'), ('08','August'), ('09','September'),
('10','October'), ('11','November'), ('12','December')], 'Month',readonly=True),
- 'date': fields.datetime('Date', readonly=True),
+ 'date': fields.date('Date', readonly=True),
'date_closed': fields.datetime('Closed', readonly=True),
'job_id': fields.many2one('hr.job', 'Applied Job',readonly=True),
'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_id','=',section_id),('object_id.model', '=', 'hr.applicant')]",readonly=True),
diff --git a/addons/hr_recruitment/report/hr_recruitment_report_view.xml b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
index a08285f27b8..3ed947468ee 100644
--- a/addons/hr_recruitment/report/hr_recruitment_report_view.xml
+++ b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
@@ -121,7 +121,7 @@
hr.recruitment.report
form
tree,graph
- {'search_default_Stage': 1,'search_default_day': 1 }
+ {'search_default_Stage': 1 }
diff --git a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report.py b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report.py
index 208ea5c1f2a..525f2783123 100644
--- a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report.py
+++ b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report.py
@@ -29,7 +29,7 @@ class report_timesheet_line(osv.osv):
_columns = {
'name': fields.char('Year',size=64,required=False, readonly=True),
'user_id':fields.many2one('res.users', 'User', readonly=True),
- 'date' : fields.date('Date', readonly=True),
+ 'day' : fields.date('Day', readonly=True),
'quantity': fields.float('Quantity', readonly=True),
'cost': fields.float('Cost', readonly=True),
'product_id' : fields.many2one('product.product', 'Product',readonly=True),
@@ -49,7 +49,7 @@ class report_timesheet_line(osv.osv):
to_char(l.date,'YYYY') as name,
to_char(l.date,'MM') as month,
l.user_id,
- l.date,
+ l.date as day,
l.invoice_id,
l.product_id,
l.account_id,
diff --git a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
index 6dd8dfcaffb..614ec0e0550 100644
--- a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
+++ b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
@@ -26,7 +26,7 @@
tree
-
+
@@ -61,8 +61,10 @@
+
-
+
+
diff --git a/addons/purchase/report/purchase_report_view.xml b/addons/purchase/report/purchase_report_view.xml
index c9f88e356da..7e35c2dbe8b 100644
--- a/addons/purchase/report/purchase_report_view.xml
+++ b/addons/purchase/report/purchase_report_view.xml
@@ -100,7 +100,7 @@
-
+