This commit refactors discuss code to use OWL components and new tools and services in web/. Functionally, Discuss app should work relatively the same as before this commit. closes https://github.com/odoo/odoo/pull/110188 Related: https://github.com/odoo/enterprise/pull/38058 https://github.com/odoo/upgrade/pull/4423 closes odoo/odoo#110188 Related: odoo/upgrade#4423 Related: odoo/enterprise#38058 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre (aku) <aku@odoo.com> Co-authored-by: Didier (did) <did@odoo.com> Co-authored-by: Géry (ged) <ged@odoo.com> Co-authored-by: Louis (wil) <wil@odoo.com> Co-authored-by: Maël (mapa) <mapa@odoo.com> Co-authored-by: Maryam (maki) <maki@odoo.com> Co-authored-by: Sébastien (seb) <seb@odoo.com> Co-authored-by: Thanh (tso) <tso@odoo.com> Co-authored-by: Matthieu (tsm) <tsm@odoo.com> Co-authored-by: Zelong (zel) <zel@odoo.com>
19 lines
650 B
JavaScript
19 lines
650 B
JavaScript
/** @odoo-module **/
|
|
|
|
import { click, start, startServer } from "@mail/../tests/helpers/test_utils";
|
|
|
|
QUnit.module("activity menu");
|
|
|
|
QUnit.test("should update activities when opening the activity menu", async (assert) => {
|
|
const pyEnv = await startServer();
|
|
await start();
|
|
assert.strictEqual($(".o-mail-ActivityMenu-counter").text(), "");
|
|
const partnerId = pyEnv["res.partner"].create({});
|
|
pyEnv["mail.activity"].create({
|
|
res_id: partnerId,
|
|
res_model: "res.partner",
|
|
});
|
|
await click(".o_menu_systray i[aria-label='Activities']");
|
|
assert.strictEqual($(".o-mail-ActivityMenu-counter").text(), "1");
|
|
});
|