701d0f0e1ab708d26ce08d806d5f8fef200ff7ff
The method `plan_hours` does nothing if the `hours` parameter is equal to 0. This commit adds the 0 case in the logic, and add an optional `resource` in the parameters. Example: A workorder works each days between 8am and 4pm. If we call `plan_hours(0)` at 9pm, we want to get 8am the next day. Currently, it sends back 9pm. Before this commit, a hack existed consisting to send a very small value to `plan_hours`. The holidays and non-working time were taken into account and the result was rounded to the second. We can now send explicitely 0 and the non-working hours will be skipped.
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%