summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-05-22 11:19:48 +0200
committerAaron Bohy <aab@odoo.com>2017-05-22 13:06:47 +0200
commit967978c96ea1a30a5fd566cf26b1dec1c24e4013 (patch)
treea4238de3d6f6fb8ca7d69dfda39587a0ae2a7437 /addons/web/static/src/js/views/basic
parent95b853ad2d979d173f780893c8175d951f3d04b9 (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')
0 files changed, 0 insertions, 0 deletions