[6.1][7.0][trunk] All planned dates are not computed by working (business) days
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 2 |
Bug Description
When I set a delay of 6 day(s) to manufacture a product, I do not expect to finish it during the weekend !!!
All delays must be computed with the configured working days of a company:
http://
Actually I changed all date computation from (example):
def _get_date_
return date_planned
to:
def _get_date_
count = (line.delay or 0.0)
if count > 0:
else:
return date_planned
But it will be better to have "res.config" parameter where we can set (check) working days (for each company):
[X] Monday
[X] Tuesday
[X] Wednesday
[X] Thursday
[X] Friday
[ ] Saturday
[ ] Sunday
And a generic function (in tools) to compute delays from this settings that could be used by all addons the same way.
This function should allow forward delay:
eg: delivered_date = now + delay
And backward delay:
eg: manufacture_
I think the Akretion folks presented a module doing this during the 2012 community days. You should query them about this on the community mailing list.
Now, I agree with you that OpenERP should be dealing with this.