[IMP] account: set element names for easier xpaths

Before this commit some of the <p> elements had no id or name.
This means you need to do uglier or more risky xpath expressions.

By adding names on the elements we can easily xpath to the element itself which results in less changes of breaking or having issues.

closes odoo/odoo#56096

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
root
2020-08-19 07:25:25 +00:00
parent 47a80f8825
commit 13e3f8affc
+2 -2
View File
@@ -184,7 +184,7 @@
</div>
</div>
</div>
<p t-if="o.move_type in ('out_invoice', 'in_refund') and o.payment_reference">
<p t-if="o.move_type in ('out_invoice', 'in_refund') and o.payment_reference" name="payment_communication">
Please use the following communication for your payment : <b><span t-field="o.payment_reference"/></b>
</p>
<p t-if="o.invoice_payment_term_id" name="payment_term">
@@ -196,7 +196,7 @@
<p t-if="o.fiscal_position_id.note" name="note">
<span t-field="o.fiscal_position_id.note"/>
</p>
<p t-if="o.invoice_incoterm_id" name="note">
<p t-if="o.invoice_incoterm_id" name="incoterm">
<strong>Incoterm: </strong><span t-field="o.invoice_incoterm_id.code"/> - <span t-field="o.invoice_incoterm_id.name"/>
</p>
<div id="qrcode" t-if="o.display_qr_code">