From 823933aa959eeb84e026b4f93def156565c05a4a Mon Sep 17 00:00:00 2001 From: "pap (openerp)" Date: Wed, 14 Jul 2010 15:02:24 +0530 Subject: [PATCH] [IMP]:improved demo data for project_long_term removing hard-coded dates bzr revid: pap@tinyerp.co.in-20100714093224-mcgf4lwdgd9sr1kn --- addons/project/project_view.xml | 3 +- addons/project_gtd/project_gtd_view.xml | 3 +- .../project_long_term_demo.xml | 315 +++++------------- addons/project_planning/project_planning.py | 2 +- 4 files changed, 92 insertions(+), 231 deletions(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 8fb488478ec..0a93da537d9 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -131,7 +131,7 @@ - + @@ -534,7 +534,6 @@ - @@ -22,7 +21,6 @@
- @@ -100,5 +98,6 @@
+ diff --git a/addons/project_long_term/project_long_term_demo.xml b/addons/project_long_term/project_long_term_demo.xml index fd965e4c792..4abc9b7ef57 100644 --- a/addons/project_long_term/project_long_term_demo.xml +++ b/addons/project_long_term/project_long_term_demo.xml @@ -249,14 +249,14 @@ - 2010-02-25 + open normal Develop an OpenERP Website. - 2010-04-30 + @@ -269,14 +269,14 @@ Information Gathering and Understanding - 2010-03-11 15:37:00 - 2010-02-25 15:33:00 + + draft - + - 2010-02-24 15:37:00 - 2010-03-10 15:33:00 + + @@ -284,14 +284,14 @@ Planning - 2010-03-25 15:49:00 - 2010-02-18 15:48:00 + + draft - + - 2010-02-12 15:49:00 - 2010-03-11 15:48:00 + + @@ -299,14 +299,14 @@ Web Design - 2010-04-15 16:08:00 - 2010-04-01 16:02:00 + + draft - + - 2010-03-09 16:00:00 - 2010-04-10 16:02:00 + + @@ -314,14 +314,14 @@ Development, Integration and Testing - 2010-04-27 17:29:00 - 2010-04-12 16:10:00 + + draft - + - 2010-03-10 16:11:00 - 2010-04-26 16:10:00 + + @@ -329,14 +329,14 @@ Website Deployment - 2010-04-30 16:35:00 - 2010-04-26 16:35:00 + + draft - + - 2010-03-10 16:35:00 - 2010-04-27 16:34:00 + + @@ -396,11 +396,11 @@ - - 2010-03-02 11:00:00 - + + + - 2010-02-24 05:00:00 + 2 @@ -408,17 +408,17 @@ Prepare Requirements Document - 2010-03-08 - - + + + - + - 2010-02-25 15:38:08 + 2 @@ -426,17 +426,17 @@ Define Website Goals, Purposes and Target Audience - 2010-03-04 - - + + + - - + + - 2010-02-25 15:42:42 + 2 @@ -444,9 +444,9 @@ Use Cases - 2010-03-10 - - + + + @@ -454,7 +454,7 @@ - 2010-02-25 15:51:00 + 2 @@ -462,7 +462,7 @@ Budget Planning - 2010-03-31 + @@ -472,7 +472,7 @@ - 2010-02-25 15:54:42 + 2 @@ -480,7 +480,7 @@ Quality Planning - 2010-03-31 + @@ -490,7 +490,7 @@ - 2010-02-25 15:55:11 + 2 @@ -498,7 +498,7 @@ Risk Management Planning - 2010-03-31 + @@ -508,7 +508,7 @@ - 2010-02-25 15:57:48 + 2 @@ -516,7 +516,7 @@ Create Project Schedules - 2010-03-31 + @@ -526,7 +526,7 @@ - 2010-02-25 16:04:16 + 2 @@ -534,7 +534,7 @@ Dataflow Design - 2010-04-02 + @@ -544,7 +544,7 @@ - 2010-02-25 16:05:43 + 2 @@ -552,9 +552,9 @@ User Interface Design - 2010-04-10 - - + + + @@ -562,7 +562,7 @@ - 2010-02-25 16:06:52 + 2 @@ -570,7 +570,7 @@ Task Level WBS - 2010-04-07 + @@ -580,7 +580,7 @@ - 2010-02-25 16:11:40 + 2 @@ -588,16 +588,17 @@ Modular Programming - 2010-04-22 + + - 2010-02-25 16:13:10 + 2 @@ -605,16 +606,17 @@ Integrate Modules - 2010-04-24 + + - + - 2010-02-25 16:14:32 + 2 @@ -622,16 +624,17 @@ Unit Testing - 2010-04-24 - - + + + + - 2010-02-25 16:15:38 + 2 @@ -639,16 +642,17 @@ Regression Test - 2010-04-24 + + - 2010-02-25 16:17:04 + 2 @@ -656,16 +660,17 @@ Documentation - 2010-04-24 + + - 2010-02-25 16:17:42 + 2 @@ -673,16 +678,17 @@ Performance Tuning - 2010-04-24 + + - 2010-02-25 16:21:15 + 2 @@ -690,171 +696,28 @@ Deploy Website - 2010-04-26 + + - - - - 2010-02-25 16:22:09 - - 2 - - - - - Presentation - 2010-04-28 - - - - - - - - - 2010-02-25 16:36:02 - - 2 - - - - - Deployment - 2010-04-28 - - - - - - - - - - 2010-02-25 16:36:43 - - 2 - - - - - Presentation - 2010-04-29 - - - - - - - - - - 2010-02-25 17:22:46 - - 2 - - - - - Modules Integration - 2010-04-24 - - - - - - - - - - 2010-02-25 17:34:32 - - 2 - - - - - Unit Testing - 2010-04-24 - - - - - - - - - - 2010-02-25 17:35:46 - - 2 - - - - - Modular Testing - 2010-04-24 - - - - - - - 2010-02-25 17:36:27 + 2 - Documentation - 2010-04-28 + Presentation + - - - - - - - - 2010-02-25 17:37:03 - - 2 - - - - - Performance Tuning - 2010-04-27 - - - - - - - - 2010-03-12 18:00:00 - - - 2010-03-01 12:00:00 - - 2 - - - - - Modular Programming - 2010-04-22 - - - + diff --git a/addons/project_planning/project_planning.py b/addons/project_planning/project_planning.py index 69dfde4e6bf..37f4096fb81 100644 --- a/addons/project_planning/project_planning.py +++ b/addons/project_planning/project_planning.py @@ -215,7 +215,7 @@ class project_task(osv.osv): def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): if not context: context = context - if not context.get('planning'): + if not context.get('planning', False): return super(project_task,self).search(cr, user, args, offset, limit, order, context) cr.execute(" SELECT t.id, t.name \ from project_task t \