The pad widget was partially updated to the new views, but was no longer working. In this commit, we rewrite the widget to make it work. Note that we did some functional changes: - we do only one rpc to check if the server is configured. the result is stored on the prototype, so we do not need to do it again - we do some rpcs with shadow: true, so we will not stop the rest of the ui if the server is slow to respond - we display a loading message in readonly, when the content is not loaded yet.
16 lines
630 B
XML
16 lines
630 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="assets_backend" name="pad assets" inherit_id="web.assets_backend">
|
|
<xpath expr="." position="inside">
|
|
<link rel="stylesheet" href="/pad/static/src/css/etherpad.css" />
|
|
<script type="text/javascript" src="/pad/static/src/js/pad.js" />
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="qunit_suite" name="pad tests" inherit_id="web.qunit_suite">
|
|
<xpath expr="//script[last()]" position="after">
|
|
<script type="text/javascript" src="/pad/static/tests/pad_tests.js"></script>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|