project _schedule_project method

Bug #1016191 reported by esamyn
18
This bug affects 4 people
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_pool.compute_vacation.
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_pool.compute_vacation in _schedule_project (best option to me)
or remove the ('resource_id', '=', False) filter which I'm not sure it is really useful anyway ?

Tags: long project term
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.