diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-05-28 12:25:14 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-05-28 12:25:14 +0200 |
| commit | 5ac0c7960cdbf6f171d9b2b336fdbca6ca48d4ad (patch) | |
| tree | 4bce30d5ca4be86185eddfdbf93b317011391cfc /addons/web/static/src | |
| parent | 45e1d196f941fec4088c00b1a5bb7ac2ec938786 (diff) | |
| parent | 9bcc0498c0f4c174d45c8f58ae913767cab26145 (diff) | |
[MERGE] forward port branch saas-12.1 up to 9bcc0498c0f
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/list/list_controller.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/list/list_controller.js b/addons/web/static/src/js/views/list/list_controller.js index dfa7d272a49..c8dd6a86771 100644 --- a/addons/web/static/src/js/views/list/list_controller.js +++ b/addons/web/static/src/js/views/list/list_controller.js @@ -376,8 +376,9 @@ var ListController = BasicController.extend({ * @returns {Deferred} */ _update: function () { - this._toggleSidebar(); - return this._super.apply(this, arguments); + return this._super.apply(this, arguments) + .then(this._toggleSidebar.bind(this)) + .then(this._updateButtons.bind(this, 'readonly')); }, /** * This helper simply makes sure that the control panel buttons matches the |
