project _schedule_project method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 1 |
Bug Description
V6.1
Modules used : project, project_long_term & project_planning
Case :
- set project, phases & tasks
- set a user on the project
- set a leave for that user (resource, start/end dates, calendar)
When computing phases / tasks, leave is not taken into account
Pb :
In _schedule_project the resource_id parameter is not supplied when calling resource_
This is a pb beacause the compute_vacation check if the resource_id is supplied. If false the leave_ids' search take the filter ('resource_id', '=', False). But in our case, the leave has a resource_id so it is not returned !
Solve options :
Either set the resource_id when calling resource_
or remove the ('resource_id', '=', False) filter which I'm not sure it is really useful anyway ?
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
tags: | added: long project term |