From 49d05c86b239993504738e0a90847120f8993bde Mon Sep 17 00:00:00 2001 From: Niels Huylebroeck Date: Tue, 25 Aug 2009 13:53:17 +0200 Subject: [PATCH 1/3] Fixes project field not being auto-filled when creating a delegated task. Refers to bug 418541 bzr revid: niels@bubbles-it.be-20090825115317-pjwbavye3lxj4fn7 --- addons/project/project_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index f130ec8b5c0..29c67ee640a 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -307,7 +307,7 @@ - + From 9824b079bbf84fb01942d451de6e9a21f693283f Mon Sep 17 00:00:00 2001 From: Niels Huylebroeck Date: Thu, 3 Sep 2009 16:00:45 +0200 Subject: [PATCH 2/3] [FIX] Problem when using hr_holidays Summary Report when entering date 1 jan 2009 for example. bzr revid: niels@bubbles-it.be-20090903140045-9cv5ty32g1rgsuih --- addons/hr_holidays/report/holidays_summary_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/report/holidays_summary_report.py b/addons/hr_holidays/report/holidays_summary_report.py index 589f97f2631..2f7c32933d2 100644 --- a/addons/hr_holidays/report/holidays_summary_report.py +++ b/addons/hr_holidays/report/holidays_summary_report.py @@ -130,7 +130,7 @@ class report_custom(report_rml): while day_diff1>0: if month+i<=12: - if day_diff1>30: + if day_diff1 > lengthmonth(year,i+month)+1: # Not on 30 else you have problems when entering 01-01-2009 for example som1=datetime.date(year,month+i,1) date_xml += ['' % (x, som1.replace(day=x).strftime('%a'),cell+x) for x in range(1, lengthmonth(year,i+month)+1)] i=i+1 From 2f216b53582b6b68e8753541bf1d989b4248809e Mon Sep 17 00:00:00 2001 From: Niels Huylebroeck Date: Thu, 3 Sep 2009 17:16:18 +0200 Subject: [PATCH 3/3] [FIX] +1 on the lengthmonth returns was too much, removed it bzr revid: niels@bubbles-it.be-20090903151618-54w6ciiyr36e7z28 --- addons/hr_holidays/report/holidays_summary_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/report/holidays_summary_report.py b/addons/hr_holidays/report/holidays_summary_report.py index 2f7c32933d2..a7be0e2b51c 100644 --- a/addons/hr_holidays/report/holidays_summary_report.py +++ b/addons/hr_holidays/report/holidays_summary_report.py @@ -130,7 +130,7 @@ class report_custom(report_rml): while day_diff1>0: if month+i<=12: - if day_diff1 > lengthmonth(year,i+month)+1: # Not on 30 else you have problems when entering 01-01-2009 for example + if day_diff1 > lengthmonth(year,i+month): # Not on 30 else you have problems when entering 01-01-2009 for example som1=datetime.date(year,month+i,1) date_xml += ['' % (x, som1.replace(day=x).strftime('%a'),cell+x) for x in range(1, lengthmonth(year,i+month)+1)] i=i+1