diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-03-06 14:13:28 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-03-06 15:49:38 +0100 |
| commit | 9ccda2076444631a3a491bd0ddb231054a139bce (patch) | |
| tree | c71dd8d38e7368d827dfc0c2d26ffd90b669b209 /addons/web/static/src/js/views/basic | |
| parent | 72b75028d704f7d082224c12a525609c8c35bc3a (diff) | |
[FIX] web: BasicView: prevent crash in tests
A crash occured in several Studio tests that have just been
forwardported to saas-11.2, because of a line that hadn't been
adapted in rev. cb339842 (technically, the previous code was
correct, but it crashed when viewInfo.fields was undefined, which
doesn't happen outside the tests environment).
Diffstat (limited to 'addons/web/static/src/js/views/basic')
| -rw-r--r-- | addons/web/static/src/js/views/basic/basic_view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/basic/basic_view.js b/addons/web/static/src/js/views/basic/basic_view.js index a0574c6a401..b4df9c8e09e 100644 --- a/addons/web/static/src/js/views/basic/basic_view.js +++ b/addons/web/static/src/js/views/basic/basic_view.js @@ -45,7 +45,7 @@ var BasicView = AbstractView.extend({ this.rendererParams.viewType = this.viewType; this.controllerParams.confirmOnDelete = true; - this.controllerParams.archiveEnabled = 'active' in viewInfo.fields; + this.controllerParams.archiveEnabled = 'active' in this.fields; this.controllerParams.hasButtons = 'action_buttons' in params ? params.action_buttons : true; |
