diff options
| author | mcm-odoo <mcm@odoo.com> | 2020-01-08 08:47:56 +0000 |
|---|---|---|
| committer | Michael Mattiello (mcm) <mcm@odoo.com> | 2020-01-28 07:42:56 +0000 |
| commit | 5aa0822a9d098ab1b065d3536f9ced18a5ae54b8 (patch) | |
| tree | dc72159c5cccfb95dd0ea6627b8f0827b7b5239e /addons/mail/static/tests/activity_tests.js | |
| parent | 7e405102d2922ccb734973451c6cb05e99cb73e5 (diff) | |
[REF] mail: migrate activity renderer to owl
In order to prepare the future, we want to convert everything in Owl.
This commit converts the activity renderer.
closes odoo/odoo#42278
Task: 2149408
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/mail/static/tests/activity_tests.js')
| -rw-r--r-- | addons/mail/static/tests/activity_tests.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/mail/static/tests/activity_tests.js b/addons/mail/static/tests/activity_tests.js index 6c3c297ba5a..c32702d8c45 100644 --- a/addons/mail/static/tests/activity_tests.js +++ b/addons/mail/static/tests/activity_tests.js @@ -263,7 +263,8 @@ QUnit.test('activity view: batch send mail on activity', async function (assert) QUnit.test('activity view: activity widget', async function (assert) { assert.expect(16); - var activity = await createView({ + + const params = { View: ActivityView, model: 'task', data: this.data, @@ -313,7 +314,10 @@ QUnit.test('activity view: activity widget', async function (assert) { } }, }, - }); + }; + + owl.Component.env = testUtils.mock.getMockedOwlEnv(params); + var activity = await createView(params); var today = activity.$('table tbody tr:first td:nth-child(2).today'); var dropdown = today.find('.dropdown-menu.o_activity'); |
