ORDER / QUOTATION TEMPLATE (customer order number on the order / quotation)
<div class="row mt32 mb32" id="informations">
<div t-if="o.client_order_ref" class="col-xs-3">
<strong>Customer Order No:</strong>
<p t-field="o.client_order_ref"/>
</div>
<div t-if="o.date_order" class="col-xs-2">
<strong t-if="o.state not in ['draft','sent']">Order Date:</strong>
<strong t-if="o.state in ['draft','sent']">Quotation Date:</strong>
<p t-field="o.date_order" t-field-options='{"format": "d MMMM y"}'/>
</div>
<div t-if="o.user_id.name" class="col-xs-2">
<strong>Salesperson:</strong>
<p t-field="o.user_id.name"/>
</div>
<div t-if="o.payment_term" class="col-xs-2">
<strong>Payment Term:</strong>
<p t-field="o.payment_term"/>
</div>
<div class="col-xs-3">
<strong>Estimated Delivery Date:</strong>
<p t-field="o.requested_date" t-field-options='{"format": "d MMMM y"}'/>
</div>
<div class="col-xs-2">
<strong>Our Ref No:</strong>
<p t-field="o.name"/>
</div>
</div>
----------------------------------------------------------------------------------------------
INVOICE & DRAFT / PROFORMA. (customer order number on the template)
<div class="col-xs-3">
<strong>Customer Reference</strong>
<p><span t-field="o.name" position="after">
<!-- make sure client_order_ref has a value, or do nothing -->
<div t-if="o.sale_id.client_order_ref"><p t-field="o.sale_id.client_order_ref"/>
</div>
</span>
</p>
</div>