From 09b4e880766977c168707e1e39a62920966ad894 Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Mon, 25 Jan 2010 12:49:49 +0530 Subject: [PATCH 1/3] [IMP]:survey,crm_hr *Improved the demo data in crm_hr *improved the date format in survey browse report. bzr revid: apa@tinyerp.com-20100125071949-de0xrrcyuhi8kv11 --- addons/crm_hr/crm_hr_data.xml | 3 ++- addons/survey/report/survey_browse_response.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/crm_hr/crm_hr_data.xml b/addons/crm_hr/crm_hr_data.xml index 8d8f6c2ee94..337e9f3af24 100644 --- a/addons/crm_hr/crm_hr_data.xml +++ b/addons/crm_hr/crm_hr_data.xml @@ -80,6 +80,7 @@ Job Survey draft + 20 @@ -92,7 +93,7 @@ - Education & Activities + Education & Activities diff --git a/addons/survey/report/survey_browse_response.py b/addons/survey/report/survey_browse_response.py index 2d1d94c4b4e..93b9ec011f6 100644 --- a/addons/survey/report/survey_browse_response.py +++ b/addons/survey/report/survey_browse_response.py @@ -24,6 +24,7 @@ import pooler from report.interface import report_rml from tools import to_xml import tools +import time class survey_browse_response(report_rml): def create(self, cr, uid, ids, datas, context): @@ -162,7 +163,7 @@ class survey_browse_response(report_rml): """ + to_xml(tools.ustr(survey.title)) + """ - """ + to_xml(response.date_create) + """ + """ + to_xml(time.strftime('%d-%m-%Y %I:%M:%S %p', time.strptime(response.date_create.split('.')[0], '%Y-%m-%d %H:%M:%S'))) + """ """ + to_xml(response.user_id.name) + """ From c1aa3918fa433a80f9cfdf02bbdc8e4177e3c2dc Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Mon, 25 Jan 2010 14:51:28 +0530 Subject: [PATCH 2/3] [FIX] document_change: correct domain in relate button link bzr revid: hmo@tinyerp.com-20100125092128-q6x20weryvpm6jql --- addons/document_change/document_change_view.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/document_change/document_change_view.xml b/addons/document_change/document_change_view.xml index 8bac532111a..8ad39632ce1 100644 --- a/addons/document_change/document_change_view.xml +++ b/addons/document_change/document_change_view.xml @@ -445,7 +445,7 @@ - - - +