diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-03-05 15:37:02 +0100 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-03-06 15:19:49 +0100 |
| commit | 72b75028d704f7d082224c12a525609c8c35bc3a (patch) | |
| tree | 80d85bc55feab3bdffd03838841009f0e924402a /addons/web/static/src/js/views/basic/basic_view.js | |
| parent | 66acbe30f1c08ba703b9294194dd4dfeb0c2df67 (diff) | |
[FIX] mail: tests: correctly destroy with createDiscuss helper
Before this commit, when using createDiscuss and performing
discuss.destroy, the parent widget was not destroyed.
This is an issue, because the mocked environment is attached
to the parent widget of discuss. Any call to this.getSession()
is mocked by the addMockEnvironment, and this mocked behaviour
is removed only when the corresponding widget is destroyed.
This commit overrides discuss.destroy(), so that the parent
widget is also destroyed, so that it removes the side effect on
this.getSession() from the mocked environment.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_view.js')
0 files changed, 0 insertions, 0 deletions
