I have a qweb setup like this:
file 'a.xml':
<?xml version="1.0" encoding="UTF-8"?>file 'b.xml':
<templates id="template" xml:space="preserve">
<t t-name="templatename">
... </t>
</templates>
<?xml version="1.0" encoding="UTF-8"?>How do I replace that content?
<templates id="template" xml:space="preserve">
<t t-extend="templatename">
*** CONTENT TO REPLACE ***
</t>
</templates>
I tried using both the deprecated t-extends and the up-to-date t-inherit methods:
<t t-extend="templatename">
<xpath expr="..." position="replace">
*** REPLACEMENT CONTENT ***
</xpath>
</t>
<t t-inherit="moduleoftemplatename.templatename" t-inherit-mode="extension"> <xpath expr="..." position="replace"> *** REPLACEMENT CONTENT *** </xpath> </t>
But neither of these work, as these inherit the template specified in 'a.xml', so xpath can't find the content from 'b.xml' it's looking for.
How can I solve this given that I can't change content in 'a.xml' or 'b.xml'?