fix: use t-extend/t-jquery instead of xpath for legacy reconciliation template — resolves "Template name is missing" asset bundle error
This commit is contained in:
+9
-3
@@ -10,9 +10,15 @@
|
||||
|
||||
Origineel template: reconciliation.line.mv_line.amount
|
||||
(enterprise-sys/account_accountant/static/src/xml/account_reconciliation.xml)
|
||||
|
||||
Dit is een legacy widget-template (gerenderd via core.qweb.render,
|
||||
geen OWL), dus we breiden ze uit met de oude t-extend/t-jquery
|
||||
syntax in plaats van <xpath>.
|
||||
-->
|
||||
<xpath expr="//t[@t-name='reconciliation.line.mv_line.amount']//span[hasclass('line_amount')][2]" position="after">
|
||||
<span t-if="line.rest_amount_str" class="dlv_rest_amount text-muted" title="Nog te matchen"> (<t t-out="line.rest_amount_str"/>)</span>
|
||||
</xpath>
|
||||
<t t-extend="reconciliation.line.mv_line.amount">
|
||||
<t t-jquery="span.line_amount:last" t-operation="after">
|
||||
<span t-if="line.rest_amount_str" class="dlv_rest_amount text-muted" title="Nog te matchen"> (<t t-out="line.rest_amount_str"/>)</span>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user