summaryrefslogtreecommitdiff
path: root/addons/mail_bot/views/assets.xml
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-08-30 16:10:20 +0200
committerAlexandre Kühn <aku@odoo.com>2018-08-30 17:55:18 +0200
commitf80bbb4b2a1230ba543e97d3da01c7b2c52d24cc (patch)
tree34d27fbdab943be7a2ebd675095060bb6ea512b5 /addons/mail_bot/views/assets.xml
parentf8e3aed20ba073294fa1453f86709d6cbce650f5 (diff)
[IMP] mail, mail_bot: improved push notifications permission response
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
Diffstat (limited to 'addons/mail_bot/views/assets.xml')
-rw-r--r--addons/mail_bot/views/assets.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/mail_bot/views/assets.xml b/addons/mail_bot/views/assets.xml
index 134b54e931e..43c9a37e694 100644
--- a/addons/mail_bot/views/assets.xml
+++ b/addons/mail_bot/views/assets.xml
@@ -4,6 +4,12 @@
<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>