openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #12851
[Bug 1016191] [NEW] project _schedule_project method
Public bug reported:
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 ?
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1016191
Title:
project _schedule_project method
Status in OpenERP Addons (modules):
New
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 ?
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1016191/+subscriptions
Follow ups
References