Files
odoo_source/addons/snailmail/views/assets.xml
T
Sébastien Theys c2918c139b [IMP] web, *: improve mock server and replace most mail mockRPC
Improve mock server:

- add support for mocked `fetch`
- add support for `active_test`
- add support for x2m `in` in domains
- add support for default values computed from a function
- implement a more natural "next id" compute
- allow initial data without ids
- ensure write and x2m commands integrity
- improve bad data/bad commands error messages
- always warn for failing RPC, not only in debug mode
- fix all existing tests that had inconsistency data

Other changes done in mail (or dependents) that are not just related to tests:

- remove `direct_partner` from formatter result
  ->`correspondent` can be computed from other keys, especially `members`

- fix `livechat_visitor` convertData
  -> only process if there is value

- add `current_partner` and `current_user_id` as `init_messaging` result
  -> easier to mock than session

- remove usage of `need_moderation`
  -> that was just a search indirection to `moderation_status`

- adapt `partner_id` -> `res_partner_id` key in `_notification_format`
  -> to be consistent with field name

- add name in result of `mail_partner_format`
  -> sometimes display_name is not the same

- remove usage of `is_moderator`
  -> that was just an indirection to `moderation_channel_ids`

Enterprise counterpart: https://github.com/odoo/enterprise/pull/11523
task-2287171

closes odoo/odoo#55854

X-original-commit: 7ba3fecb3377a720d1eb70e7515a0c45da73836d
Related: odoo/enterprise#12391
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-13 16:26:35 +00:00

34 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_backend" name="iap assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/snailmail/static/src/bugfix/bugfix.js"></script>
<script type="text/javascript" src="/snailmail/static/src/components/message/message.js"/>
<script type="text/javascript" src="/snailmail/static/src/components/notification_group/notification_group.js"/>
<script type="text/javascript" src="/snailmail/static/src/components/snailmail_error_dialog/snailmail_error_dialog.js"/>
<script type="text/javascript" src="/snailmail/static/src/components/snailmail_notification_popover/snailmail_notification_popover.js"/>
<script type="text/javascript" src="/snailmail/static/src/models/message/message.js"/>
<script type="text/javascript" src="/snailmail/static/src/models/messaging/messaging.js"/>
<script type="text/javascript" src="/snailmail/static/src/models/notification_group/notification_group.js"/>
<link rel="stylesheet" type="text/scss" href="/snailmail/static/src/bugfix/bugfix.scss"/>
<link rel="stylesheet" type="text/scss" href="/snailmail/static/src/components/snailmail_notification_popover/snailmail_notification_popover.scss"/>
</xpath>
</template>
<template id="tests_assets" name="snailmail tests assets" inherit_id="web.tests_assets">
<xpath expr="." position="inside">
<script type="text/javascript" src="/snailmail/static/tests/helpers/mock_models.js"/>
<script type="text/javascript" src="/snailmail/static/tests/helpers/mock_server.js"/>
</xpath>
</template>
<template id="qunit_suite" name="snailmail_tests" inherit_id="web.qunit_suite_tests">
<xpath expr="." position="inside">
<script type="text/javascript" src="/snailmail/static/src/bugfix/bugfix_tests.js"/>
<script type="text/javascript" src="/snailmail/static/src/components/message/message_tests.js"/>
<script type="text/javascript" src="/snailmail/static/src/components/notification_list/notification_list_notification_group_tests.js"/>
</xpath>
</template>
</odoo>