Ravindra Mekhiya(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-712370-rme into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
#712370 Time spent on project should computed based on task work entries on
any state of task.
https://bugs.launchpad.net/bugs/712370
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-712370-rme/+merge/50286
Hello,
-effective_hours not update in accordance with the work task's of it's project.
-progress bar also not update in accordance with the work task's progress.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-712370-rme/+merge/50286
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-712370-rme.
=== modified file 'project/project.py'
--- project/project.py 2011-01-18 22:45:39 +0000
+++ project/project.py 2011-02-18 09:18:58 +0000
@@ -134,22 +134,13 @@
'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),
}),
- 'effective_hours': fields.function(_progress_rate, multi="progress", method=True, string='Time Spent', help="Sum of spent hours of all tasks related to this project and its child projects.",
- 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),
- }),
+ 'effective_hours': fields.function(_progress_rate, multi="progress", method=True, string='Time Spent', help="Sum of spent hours of all tasks related to this project and its child projects."),
'total_hours': fields.function(_progress_rate, multi="progress", method=True, string='Total Time', help="Sum of total hours of all tasks related to this project and its child projects.",
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),
}),
- 'progress_rate': fields.function(_progress_rate, multi="progress", method=True, string='Progress', type='float', group_operator="avg", help="Percent of tasks closed according to the total of tasks todo.",
- 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),
- }),
+ 'progress_rate': fields.function(_progress_rate, multi="progress", method=True, string='Progress', type='float', group_operator="avg", help="Percent of tasks closed according to the total of tasks todo."),
'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)]}),
'warn_footer': fields.text('Mail Footer', help="Footer 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)]}),
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp