f8c2efc0126d474325681ca88e6bb7fdd9611f0c
Since the early versions of the homeworking modules, we were showing incorrect colors for the homeworking icons if the partner_id was too large. This comes from the fact that we were not using the getColor helper from calendar to decide which color to render. Since we have a limited amount of colors, we should not use the partner id to define the color, but actually cycle through all the possible colors, which is done by the getColor method. Also, when getting the homeworking data, it was possible to get partner_id as false when the employee had no related user. This commit also changes this to fallback on the work_contact_id if no user is set. task-3561678 closes odoo/odoo#139167 Signed-off-by: Bertrand Dossogne (bedo) <bedo@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%