← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-771161-jam into lp:openobject-addons

 

Jigar Amin - OpenERP has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-771161-jam into lp:openobject-addons.

Requested reviews:
  Bhumika (OpenERP) (sbh-openerp)
Related bugs:
  Bug #771161 in OpenERP Addons: "[project]After Task scheduling, task's time not modified"
  https://bugs.launchpad.net/openobject-addons/+bug/771161

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-771161-jam/+merge/59315

Hello, 
  Bug:771161 fixed with Merge Proposal.
   In Project Log Term After Scheduling the Task and Phase, Task Come up with only Date in start and End date it does not show time, It has been fixed now Time will be based on working time in project. and if no time given than working schedule will 24x7 by default.
Kindly Review this
Thank You
JAM
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-771161-jam/+merge/59315
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-771161-jam.
=== modified file 'project_long_term/project_long_term.py'
--- project_long_term/project_long_term.py	2011-01-24 16:13:46 +0000
+++ project_long_term/project_long_term.py	2011-04-28 04:58:25 +0000
@@ -379,8 +379,8 @@
                 end_date = task.end.to_datetime()
                 
                 task_pool.write(cr, uid, [task_id], {
-                                      'date_start': start_date.strftime('%Y-%m-%d'),
-                                      'date_end': end_date.strftime('%Y-%m-%d')
+                                      'date_start': start_date.strftime('%Y-%m-%d %H:%M:%S'),
+                                      'date_end': end_date.strftime('%Y-%m-%d %H:%M:%S')
                                     }, context=context)
         return True
 project_phase()
@@ -570,8 +570,8 @@
 
 
                 phase_pool.write(cr, uid, [phase_id], {
-                                      'date_start': start_date.strftime('%Y-%m-%d'),
-                                      'date_end': end_date.strftime('%Y-%m-%d')
+                                        'date_start': start_date.strftime('%Y-%m-%d %H:%M:%S'),
+                                        'date_end': end_date.strftime('%Y-%m-%d %H:%M:%S')
                                     }, context=context)
         return True            
 
@@ -695,8 +695,8 @@
                 end_date = task.end.to_datetime()
                 
                 task_pool.write(cr, uid, [task_id], {
-                                      'date_start': start_date.strftime('%Y-%m-%d'),
-                                      'date_end': end_date.strftime('%Y-%m-%d')
+                                      'date_start': start_date.strftime('%Y-%m-%d %H:%M:%S'),
+                                      'date_end': end_date.strftime('%Y-%m-%d %H:%M:%S')
                                     }, context=context)
         return True
 


Follow ups