79ba06e6e36aa922f19934ac1c387855e1c0d8d8
Issue: Despite the behavior which is to recalculate the hours to keep the same number of days from the point of view of the company, when distributing allocations for a department, an incomprehensible calculation appears. This behavior appears even if all the working times are the same (both for the company and for the employees). Cause: When we need to calculate the number of days for an allocation given in hours, we use the number of hours per day of the employee. However, in the case of an allocation by department, this value is `0.0`. Therefore, we will use the hard-coded `HOURS_PER_DAY` value which is `8.0`. This value makes sense if the company's schedule is 40 hours per week (8 hours per day). It is also useful in the case of an undefined company's schedule. But if the company schedule is defined and is different from 40 hours per week, this value no longer represents anything. Solution: First use the number of hours from the point of view of the company before using the hard-coded value. opw-3205685 closes odoo/odoo#116991 X-original-commit: 6ddf340f0f19e1abd58ce8345bdc25763cb32878 Signed-off-by: Kevin Baptiste <kba@odoo.com> Signed-off-by: Lefebvre Thomas (thle) <thle@odoo.com>
…
…
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, ...
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.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%