← Back to team overview

openerp-india team mailing list archive

[Bug 1016191] Re: project _schedule_project method

 

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
   Importance: Undecided => Wishlist

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

-- 
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):
  Confirmed

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


References