negative remaining_hours in project_task
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 1 |
Bug Description
As soon as the effectivly done work on a task in hours exceeds the planned hours I'd expect the delay_hours to reflect that situation. However instead the remaining_hours will further decreased turning into a negative number.
steps to reproduce:
1. create a task with 0-X planned hours (0 to see the effect straight away)
2. do some work on the task (less then X)
3. see remaining hours decrease
4. Up to now: everything fine
5. do some work so the effective hours exceed the plannend hours(X)
6. Remaining hours turn negative
how to fix:
* IMO reamining_hours must never be less than 0
* when saving the work and recalculation is done remaining hours should only be lowered to minimum 0
project/project.py
class project_
def write
cr.execute('update project_task set remaining_
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: project |
Hello Amit,
If the task is linked with a project, the indicators of the project are wrong.
On the project view, the time spent and total time of the project are =0...
Thanks