9fd3fc588977947c6b36daf4146e10368e5a3986
This commit modifies the way kanban_arch_parser retrieves `colorField`. Previously, the parser tried to retrieve only `colorField` (the `data-field` attribute of `.oe_kanban_colorpicker`) from `kanban-box`. Except that in most cases `.oe_kanban_colorpicker` is defined in `kanban-menu` and not `kanban-box`. for example: https://github.com/odoo/odoo/blob/31107fb4cc9cf5dc2da21cbfef58dae722c73922/addons/crm/views/crm_lead_views.xml#L554-L559 https://github.com/odoo/odoo/blob/c6978c3fc4f828d970d45ebdaa4a35b44f3d09ce/addons/project/views/project_task_views.xml#L544-L550 https://github.com/odoo/odoo/blob/c6978c3fc4f828d970d45ebdaa4a35b44f3d09ce/addons/project_todo/views/project_task_views.xml#L28-L31 etc. As a result, this code was always ignored and we always fallbacked on `||"color"`. ```js const colorField = (colorEl && colorEl.getAttribute("data-field")) || "color"; ``` Now `KanbanArchParser` checks both `kanban-box` and `kanban-menu` and finally fallbacks to `color`. Part-of: odoo/odoo#161645
…
…
…
…
…
…
…
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%