Hi, I'm trying to inherit website_sign.thank_you_dialog but this has no id. I would like to delete the advertisement that appears in the pop up when completing the signatures.
i try this
static/src/xml/remove_ad.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <template id="remove_ad_sign" t-extend="website_sign.thank_you_dialog">
3 <t t-jquery=".o_promote_esign" t-operation="replace">
4 <div>AAAAAAAAAAAAAAA</div>
5 </t>
6 </template>
my __manifest__.py:
...
'qweb': ['static/src/xml/*.xml'],
...
It doesn't work, it doesn't even return an error, what am I doing wrong?
UPDATE (Very thanks to \Sylvain Michel RATSARAFAHATRA):
/static/src/js/remove_ad_signature.js
1 odoo.define('agreements_esign.signature_request_template', function(require) {
2 'use strict'
3
4 var ajax = require("web.ajax");
5 var core = require("web.core");
6 var qweb = core.qweb;
7 var document_signing = require("website_sign.document_signing");
8
9 ajax.loadXML("/agreements_esign/static/src/xml/remove_ad_signature.xml", qweb).then(function () {
10
11 document_signing.initDocumentToSign();
12 });
13 })
~
/static/src/xml/remove_ad_signature.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <templates id="remove_ad_signature" xml:space="preserve">
3 <t t-extend="website_sign.thank_you_dialog">
4 <t t-jquery="div.o_promote_esign" t-operation="replace">
5 <div class="o_promote_esign">
6 <div>AAAAAAAAAAAAA</div>
7 </div>
8 </t>
9 </t>
10
11 </templates>
~
Get this error
BUT i see AAAAAA on the modal