[FIX] project: Progressbar on project changes if task work is entered.
authoruco (OpenERP) <uco@tinyerp.com>
Tue, 16 Nov 2010 09:14:47 +0000 (14:44 +0530)
committeruco (OpenERP) <uco@tinyerp.com>
Tue, 16 Nov 2010 09:14:47 +0000 (14:44 +0530)
lp bug: https://launchpad.net/bugs/655034 fixed

bzr revid: uco@tinyerp.com-20101116091447-eec67eaajm5affl5

addons/project/project.py

index 49e2579..bc13174 100644 (file)
@@ -153,6 +153,7 @@ class project(osv.osv):
             store = {
                 'project.project': (lambda self, cr, uid, ids, c={}: ids, ['tasks'], 10),
                 'project.task': (_get_project_task, ['planned_hours', 'effective_hours', 'remaining_hours', 'total_hours', 'progress', 'delay_hours','state'], 10),
+                'project.task.work': (_get_project_work, ['hours'], 10),
             }),
         'warn_customer': fields.boolean('Warn Partner', help="If you check this, the user will have a popup when closing a task that propose a message to send by email to the customer.", states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),
         'warn_header': fields.text('Mail Header', help="Header added at the beginning of the email for the warning message sent to the customer when a task is closed.", states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),