cb613bc606c7c073e7fbf6c8bd09d23f48a5d4e5
Before this commit: When the user creates new stages or groups in Kanban view and adds new tasks with particular states and then if the user clicks on any colour in the progressbar then the filter gets applied on all the groups or stages. Observerd Behaviour: The filter is applied on all the groups or stages.So, if we click on a colour in the progressbar suppose colour Green to filter out Approved task(s) of a particular stage then in that stage or group only the Approved task(s) would be visible. Also the filter would get applied on all other stages or groups created at that time. In those stages all the task with that state would be visible and rest of them would get blurred. Steps to produce: - Install `Project` and add a new project in it. - In the newly created project add some new stages or groups, each consisting some new tasks. - Give some states to those tasks through project state selector (for eg: Approved, Changes Requested). - Click on any particular colour in the `Progressbar` of any particular group or stage. Expected Behaviour: When the user clicks on any colour in the progressbar then it should filter out only those tasks which are associated with that color/state and only in that particular group or stage. Reason: https://github.com/odoo/odoo/blob/579ee6d9792050955fa80346fd57ad294efcdd62/addons/web/static/src/views/kanban/progress_bar_hook.js#L114 group.serverValue results as Undefined. Because when the data is being prepared here: https://github.com/odoo/odoo/blob/493d5c39982de79e6fb256dd8084bf592a740f77/addons/web/static/src/model/relational_model/dynamic_group_list.js#L222-L231C11 there is no serverValue provided. So, whenever a group is getting created here serverValue `Undefined` as value. https://github.com/odoo/odoo/blob/493d5c39982de79e6fb256dd8084bf592a740f77/addons/web/static/src/model/relational_model/group.js#L25 Note: - There was a need to change the function name from `getServerValueFromGroupData` to getGroupServerValue as now now this function calculates serverValue while the data is being created and not when the data is already created. - The function is exported into another file as this function defines the basis to calculate serverValue and there is a necessity to calculate serverValue while data is being created. Task-3620697 closes odoo/odoo#149694 Signed-off-by: Aaron Bohy (aab) <aab@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%