← Back to team overview

openerp-community team mailing list archive

[Merge] lp:~openerp-community/openobject-addons/trunk-bug-1116854-amee into lp:openobject-addons

 

amee(OpenERP) has proposed merging lp:~openerp-community/openobject-addons/trunk-bug-1116854-amee into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1116854 in OpenERP Addons: "[Trunk] A Reactivated Task shows as 100% Progress in List View"
  https://bugs.launchpad.net/openobject-addons/+bug/1116854

For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/trunk-bug-1116854-amee/+merge/149976

Hello,

When Reactivate Task, state are not changed.it remains in done state because of that progress bar remain 100%.
so change state to open when reactivate task.

Thanks.

-- 
https://code.launchpad.net/~openerp-community/openobject-addons/trunk-bug-1116854-amee/+merge/149976
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-addons/trunk-bug-1116854-amee.
=== modified file 'project/project.py'
--- project/project.py	2013-01-15 10:03:53 +0000
+++ project/project.py	2013-02-22 06:36:20 +0000
@@ -968,7 +968,8 @@
     def do_reopen(self, cr, uid, ids, context=None):
         for task in self.browse(cr, uid, ids, context=context):
             project = task.project_id
-            self.case_set(cr, uid, [task.id], 'open', {}, context=context)
+            #When Reevaluation Task, Need to change state to open.
+            self.case_set(cr, uid, [task.id], 'open', {'state': 'open'}, context=context)
         return True
 
     def do_cancel(self, cr, uid, ids, context=None):


Follow ups