diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-01-10 14:36:00 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-01-12 08:13:15 +0100 |
| commit | 90279c70ebe02eb2c6dbf452289ace2164ae525e (patch) | |
| tree | 851c6a90356675388ad8ed8975cd6a8c32b896b0 /addons/web/static/src/js/fields | |
| parent | 25b101f15bb3da914dd9fa2ca804a542e2303e7b (diff) | |
[FIX] web: quick create in empty grouped kanban views
For kanban views with attribute 'on_create="quick_create' set on
their root node, clicking on 'Create' in the control panel should
open the quick create widget in the first column if the view is
grouped and if there is at least one column displayed.
It was working as expected, except when there were no record yet.
This was because the kanban controller used the 'state.count'
attribute of the state (which indicates the total number of records
in the group), whereas it should have used 'state.data.length'
(which is the number of columns).
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions
