diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-09-29 10:55:20 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-09-29 12:26:50 +0200 |
| commit | 7dbf6d2154412eabe35b1305e4ee59c8037652f3 (patch) | |
| tree | 19e6189a86f3fb1efc8e18692d27173a9e9be37f /addons/web/static/src | |
| parent | f92601704ee4c47f5852c7d576fb4ca74c3e2b47 (diff) | |
[FIX] web: allow creating new kanban columns with progressbar
Before this fix, trying to create a column in a kanban view where there
were progressbars was opening a traceback. This was because the newly
create column is made from data which are guessed in the client (no RPC
is done), so this guess had to be adapted to progressbars.
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/kanban/kanban_model.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/kanban/kanban_model.js b/addons/web/static/src/js/views/kanban/kanban_model.js index ca4924b6c65..c59a45e6f0f 100644 --- a/addons/web/static/src/js/views/kanban/kanban_model.js +++ b/addons/web/static/src/js/views/kanban/kanban_model.js @@ -79,6 +79,11 @@ var KanbanModel = BasicModel.extend({ value: result, viewType: parent.viewType, }); + if (parent.progressBar) { + newGroup.progressBarValues = _.extend({ + counts: {}, + }, parent.progressBar); + } // newGroup.is_open = true; parent.data.push(newGroup.id); |
