summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-03-05 15:37:02 +0100
committerAlexandre Kühn <aku@odoo.com>2018-03-06 15:19:49 +0100
commit72b75028d704f7d082224c12a525609c8c35bc3a (patch)
tree80d85bc55feab3bdffd03838841009f0e924402a /addons/mail/static/src/xml/thread.xml
parent66acbe30f1c08ba703b9294194dd4dfeb0c2df67 (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/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions