我正在尝试继承 website_sign.thank_you_dialog 但这没有 id。我想删除完成签名时弹出的广告。
Odoo 11 EE
/static/src/js/remove_ad_signature.js
odoo.define('my_module.signature_request_template', function(require) {
'use strict'
var ajax = require("web.ajax");
var core = require("web.core");
var qweb = core.qweb;
var document_signing = require("website_sign.document_signing");
ajax.loadXML("/my_module/static/src/xml/remove_ad_signature.xml", qweb).then(function () {
document_signing.initDocumentToSign();
});
})
/static/src/xml/remove_ad_signature.xml
<?xml version="1.0" encoding="UTF-8"?>
<templates id="remove_ad_signature" xml:space="preserve">
<t t-extend="website_sign.thank_you_dialog">
<t t-jquery="div.o_promote_esign" t-operation="replace">
<div class="o_promote_esign">
<div>AAAAAAAAAAAAA</div>
</div>
</t>
</t>
</templates>