diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-05-22 11:19:48 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-05-22 13:06:47 +0200 |
| commit | 967978c96ea1a30a5fd566cf26b1dec1c24e4013 (patch) | |
| tree | a4238de3d6f6fb8ca7d69dfda39587a0ae2a7437 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 95b853ad2d979d173f780893c8175d951f3d04b9 (diff) | |
[FIX] web: Kanban: correctly mute 'Create' button
In Kanban views, the 'Create' button must be muted (btn-default)
in grouped mode, if there is no column and if the column quick
create feature is enabled (as in this case, the first action
should be to create a column).
Before this rev, it was actually muted if there were no record, no
matter if there were columns or not.
This was because the 'count' attribute of dataPoints was used to
determine the number of columns, but this attribute represents
the number of records in the dataPoint (i.e. the sum of the number
of records in each groups).
This particular case was tested, but the test passed thanks to
another bug (we incremented the 'count' attribute in the kanban
model when creating a new group, whereas we shouldn't).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
