Before this commit, if we wanted to add channels on rpc initMessaging, we had to mock this rpc completely. Now, with this commit, we can use data 'initMessaging', whose keys can overwrite the default mocked initMessaging. For instance, if this.data.initMessaging has the key 'channel_slots', then the mocked initMessaging rpc will return a new state for the existing channels to the chat_manager. This is needed in order to reduce the size of tests than need some custom initMessaging state, such as any test that needs at least one non-static channel (i.e. neither channel_inbox nor channel_starred).
111 lines
7.0 KiB
XML
111 lines
7.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<template id="assets_backend" name="mail assets" inherit_id="web.assets_backend">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript" src="/mail/static/src/js/many2many_tags_email.js"></script>
|
|
|
|
<script type="text/javascript" src="/mail/static/src/js/chat_window.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/discuss.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/discuss_mobile.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/extended_chat_window.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/document_viewer.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/composer.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/services/chat_manager.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/services/chat_window_manager.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/chatter.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/chatter_composer.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/followers.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/form_controller.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/form_renderer.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/basic_model.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/basic_view.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/thread.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/thread_field.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/systray.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/tour.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/utils.js"></script>
|
|
<script type="text/javascript" src="/mail/static/src/js/activity.js"></script>
|
|
|
|
<link rel="stylesheet" href="/mail/static/src/less/announcement.less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/chat_window.less" type="text/less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/discuss.less" type="text/less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/extended_chat_window.less" type="text/less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/composer.less" type="text/less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/chatter.less" type="text/less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/followers.less" type="text/less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/thread.less" type="text/less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/systray.less" type="text/less"/>
|
|
<link rel="stylesheet" href="/mail/static/src/less/mail_activity.less"/>
|
|
</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/static/tests/chat_window_tests.js"></script>
|
|
<script type="text/javascript" src="/mail/static/tests/chatter_tests.js"></script>
|
|
<script type="text/javascript" src="/mail/static/tests/discuss_tests.js"></script>
|
|
<script type="text/javascript" src="/mail/static/tests/systray_tests.js"></script>
|
|
<script type="text/javascript" src="/mail/static/tests/helpers/mock_server.js"></script>
|
|
<script type="text/javascript" src="/mail/static/tests/helpers/test_utils.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="qunit_mobile_suite" name="mail_mobile_tests" inherit_id="web.qunit_mobile_suite">
|
|
<xpath expr="//t[@t-set='head']" position="inside">
|
|
<script type="text/javascript" src="/mail/static/tests/discuss_mobile_tests.js"></script>
|
|
<script type="text/javascript" src="/mail/static/tests/helpers/mock_server.js"></script>
|
|
<script type="text/javascript" src="/mail/static/tests/helpers/test_utils.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="message_origin_link">
|
|
<p>This <t t-esc="self._description.lower()"/> has been <span t-if="edit">modified</span><span t-if="not edit">created</span> from:
|
|
<t t-foreach="origin" t-as="o">
|
|
<a href="#" t-att-data-oe-model="o._name" t-att-data-oe-id="o.id"> <t t-esc="o.display_name"/></a><span t-if="origin.ids[-1:] != o.ids">, </span>
|
|
</t>
|
|
</p>
|
|
</template>
|
|
|
|
<template id="message_user_assigned">
|
|
<p>Dear <t t-esc="object.user_id.name"/>,</p>
|
|
<p>You have been assigned to the <t t-esc="object._description.lower()"/> <t t-esc="object.name_get()[0][1]"/>.</p>
|
|
<p>
|
|
<a t-att-href="'/mail/view?model=%s&res_id=%s' % (object._name, object.id)"
|
|
style="background-color: #9E588B; margin-top: 10px; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 16px;">
|
|
View <t t-esc="object._description.lower()"/>
|
|
</a>
|
|
</p>
|
|
<p style="color:#9E588B;">Powered by <a target="_blank" href="https://www.odoo.com">Odoo</a>.</p>
|
|
</template>
|
|
|
|
<template id="message_activity_done">
|
|
<div>
|
|
<p>
|
|
<strong><span t-attf-class="fa #{activity.activity_type_id.icon}"/></strong> <span t-field="activity.activity_type_id.name"/> done
|
|
by <span t-field="activity.user_id.name"/>:
|
|
<span t-if="activity.summary" t-field="activity.summary"/>
|
|
</p>
|
|
<div t-field="activity.note" style="margin-left: 8px;"/>
|
|
<div t-if="activity.feedback" style="margin-top: 8px;">
|
|
<strong> Feedback</strong>
|
|
<div t-field="activity.feedback" style="margin-left: 8px;"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="mail_bounce_catchall">
|
|
<div>
|
|
<p>Hello <t t-esc="message['email_from']"/>,</p>
|
|
<p>The email sent to <t t-esc="message['to']"/> cannot be processed. This address
|
|
is used to collect replies and should not be used to directly contact <t t-esc="res_company.name"/>.</p>
|
|
<p>Please contact us instead using <a t-att-href="'mailto:%s' % res_company.email"><t t-esc="res_company.email"/></a></p>
|
|
<p>Regards,</p>
|
|
<p>The <t t-esc="res_company.name"/> team.</p>
|
|
</div>
|
|
<blockquote><t t-esc="message['body']"/></blockquote>
|
|
</template>
|
|
|
|
</data>
|
|
</odoo>
|