This commit makes small improvements on the messaging menu with
the new module `mail_bot`:
[IMP] When OdooBot has a request, it now adds "+1" to the counter of
the messaging menu. The related preview also has a bold title,
and displays "(1)" next to the title.
[REF] Static previews are no longer in mail_service. This was only
used for "OdooBot has a request" preview. This logic has now
been moved to the module `mail_bot` (was previously in `mail`).
[FIX] Title of response of push notifications permission clearly
states whether permission has been granted or denied
(was displaying "[Object object]" before this commit).
Task-ID 1877502
17 lines
783 B
XML
17 lines
783 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<template id="assets_backend" name="mailbot assets" inherit_id="web.assets_backend">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript" src="/mail_bot/static/src/js/mailbot_service.js"></script>
|
|
<script type="text/javascript" src="/mail_bot/static/src/js/systray_messaging_menu.js"></script>
|
|
</xpath>
|
|
</template>
|
|
<template id="qunit_suite" name="mail_tests" inherit_id="web.qunit_suite">
|
|
<xpath expr="//t[@t-set='head']" position="inside">
|
|
<script type="text/javascript" src="/mail_bot/static/tests/systray_messaging_menu_tests.js"></script>
|
|
</xpath>
|
|
</template>
|
|
</data>
|
|
</odoo>
|