diff options
| author | Harpritsinh Sisodiya <hsi@odoo.com> | 2020-05-04 06:09:34 +0000 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2020-08-17 13:21:16 +0000 |
| commit | 88608c605f7ee53f98595c4e09d9aa6c1956c58b (patch) | |
| tree | 07cc0752c299abc2c863de9f8a51374d5c505e9c /addons/web/static/src/js | |
| parent | b35ec701092c2c8d37391a419708253e766a54ee (diff) | |
[IMP] web: kanban: archive last column records
Before this commit, the action helper (if any) was not displayed when
archiving all records of the last non empty column of a kanban view
(making empty that view).
With the present commit, the action helper is now correctly displayed in
that situation.
Task ID: 2247788
closes odoo/odoo#50557
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views/kanban/kanban_controller.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/kanban/kanban_controller.js b/addons/web/static/src/js/views/kanban/kanban_controller.js index e872fff811f..1b6e6301906 100644 --- a/addons/web/static/src/js/views/kanban/kanban_controller.js +++ b/addons/web/static/src/js/views/kanban/kanban_controller.js @@ -522,7 +522,10 @@ var KanbanController = BasicController.extend({ prom.then(function (dbID) { var data = self.model.get(dbID); if (data) { // Could be null if a wizard is returned for example - self.renderer.updateColumn(dbID, data); + self.model.reload(self.handle).then(function () { + const state = self.model.get(self.handle); + self.renderer.updateColumn(dbID, data, { state }); + }); } }); } |
