Skip to content
Snippets Groups Projects
Commit c849dcd4 authored by Yenthe V.G's avatar Yenthe V.G Committed by Martin Trigaux
Browse files

[IMP] account: allow easier xpath expressions

Closes #20907
parent c563013f
No related branches found
No related tags found
No related merge requests found
......@@ -24,23 +24,23 @@
</h2>
<div class="row mt32 mb32">
<div class="col-xs-2" t-if="o.name">
<div class="col-xs-2" t-if="o.name" name="description">
<strong>Description:</strong>
<p t-field="o.name"/>
</div>
<div class="col-xs-2" t-if="o.date_invoice">
<div class="col-xs-2" t-if="o.date_invoice" name="invoice_date">
<strong>Invoice Date:</strong>
<p t-field="o.date_invoice"/>
</div>
<div class="col-xs-2" t-if="o.date_due and o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')">
<div class="col-xs-2" t-if="o.date_due and o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')" name="due_date">
<strong>Due Date:</strong>
<p t-field="o.date_due"/>
</div>
<div class="col-xs-2" t-if="o.origin">
<div class="col-xs-2" t-if="o.origin" name="origin">
<strong>Source:</strong>
<p t-field="o.origin"/>
</div>
<div class="col-xs-2" t-if="o.partner_id.ref">
<div class="col-xs-2" t-if="o.partner_id.ref" name="customer_code">
<strong>Customer Code:</strong>
<p t-field="o.partner_id.ref"/>
</div>
......@@ -141,13 +141,13 @@
</div>
</div>
</div>
<p t-if="o.comment">
<p t-if="o.comment" name="comment">
<span t-field="o.comment"/>
</p>
<p t-if="o.payment_term_id">
<p t-if="o.payment_term_id" name="payment_term">
<span t-field="o.payment_term_id.note"/>
</p>
<p t-if="o.fiscal_position_id.note">
<p t-if="o.fiscal_position_id.note" name="note">
<span t-field="o.fiscal_position_id.note"/>
</p>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment