Files
odoo_source/addons/im_support/views/assets.xml
T
Christophe Matthieu 6448420c5d [IMP] bus: re-factoring of bus.bus (Longpolling and CrossTab)
The purpose of this change is to make the code clearer and testable.

In this change, the 'tab_manager' static object was merged with the bus
cross tab.

Cleaning was done to clearly define private and public functions as well
as handlers. The methods are documented and the constants are now defined
on the class. The bus use the service behavior with 'trigger_up'.

'bus.CrossTab' who extend 'bus.Longpolling' are instantiated by the
bus service.

The class is always instantiated with a parent, or root in the case of the website
(im_livechat), to use the ajax and localstorage services. So the behavior, perhaps
logger or redefined by the parents.
2018-08-09 02:31:59 +02:00

54 lines
2.5 KiB
XML

<openerp>
<data>
<template id="assets_backend" name="im_support_backend assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/im_support/static/src/scss/systray.scss" type="text/scss"/>
<script type="text/javascript" src="/im_support/static/src/js/mail_manager.js"></script>
<script type="text/javascript" src="/im_support/static/src/js/discuss.js"></script>
<script type="text/javascript" src="/im_support/static/src/js/thread_window.js"></script>
<script type="text/javascript" src="/im_support/static/src/js/support_bus.js"></script>
<script type="text/javascript" src="/im_support/static/src/js/support_channel.js"></script>
<script type="text/javascript" src="/im_support/static/src/js/support_message.js"></script>
<script type="text/javascript" src="/im_support/static/src/js/support_session.js"></script>
<script type="text/javascript" src="/im_support/static/src/js/systray_messaging_menu.js"></script>
</xpath>
</template>
<template id="qunit_suite" name="im_support_tests" inherit_id="web.qunit_suite">
<xpath expr="//t[@t-set='head']" position="inside">
<script type="text/javascript" src="/im_support/static/tests/helpers/test_utils.js"></script>
<script type="text/javascript" src="/im_support/static/tests/systray_no_support_tests.js"></script>
</xpath>
</template>
<template id="qunit_mobile_suite" name="im_support_mobile_tests" inherit_id="web.qunit_mobile_suite">
<xpath expr="//t[@t-set='head']" position="inside">
<script type="text/javascript" src="/im_support/static/tests/helpers/test_utils.js"></script>
</xpath>
</template>
<template id="im_support.support_qunit_suite">
<t t-call="web.layout">
<t t-set="html_data" t-value="{'style': 'height: 100%;'}"/>
<t t-set="title">IM Support Tests</t>
<t t-set="head">
<script type="text/javascript">
odoo.session_info = {
support_token: 'ABCDEFGHIJ',
support_origin: 'https://something.com'
};
</script>
<t t-call="web.js_tests_assets"/>
<script type="text/javascript" src="/im_support/static/tests/helpers/test_utils.js"></script>
<script type="text/javascript" src="/im_support/static/tests/systray_tests.js"></script>
</t>
<div id="qunit"/>
<div id="qunit-fixture"/>
</t>
</template>
</data>
</openerp>