diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-09-18 11:42:52 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-09-18 11:42:52 +0200 |
| commit | a12c4d284c2f65c59fe0b12c62442ac55ed40252 (patch) | |
| tree | e776d092eeb25060536c8233a231ae02d4e9a7a8 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 947194c03dbc271ffd206e88ec158b15f692bfe9 (diff) | |
| parent | a1b384d66bea128460dea4251c1dca63917ba6ac (diff) | |
[MERGE] forward port branch saas-11.4 up to a1b384d66be
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index 0a397a65047..08b6d47f0f5 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -2414,7 +2414,7 @@ var JournalDashboardGraph = AbstractField.extend({ return this._super.apply(this, arguments); }, destroy: function () { - if ('nv' in window) { + if ('nv' in window && nv.utils && nv.utils.offWindowResize) { // if the widget is destroyed before the lazy loaded libs (nv) are // actually loaded (i.e. after the widget has actually started), // nv is undefined, but the handler isn't bound yet anyway |
