From 88608c605f7ee53f98595c4e09d9aa6c1956c58b Mon Sep 17 00:00:00 2001 From: Harpritsinh Sisodiya Date: Mon, 4 May 2020 06:09:34 +0000 Subject: [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 Co-authored-by: Mohammed Shekha --- addons/web/static/src/js/views/kanban/kanban_controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'addons/web/static/src') 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 }); + }); } }); } -- cgit v1.2.3