diff options
| author | root <yenthevg@gmail.com> | 2020-08-19 07:13:43 +0000 |
|---|---|---|
| committer | root <yenthevg@gmail.com> | 2020-08-19 07:25:25 +0000 |
| commit | 13e3f8affce9984d4cb22cada14fb65b498129ba (patch) | |
| tree | cb97f95b8d346333e57783dae499e234e5b93e09 | |
| parent | 47a80f8825d829671e28d01d6d9cbe130ae57f79 (diff) | |
[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>
| -rw-r--r-- | addons/account/views/report_invoice.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index 917547a07e9..45f07cef452 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -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"> |
