Untitled
unknown
plain_text
10 months ago
9.6 kB
4
Indexable
<data><xpath expr="/t[@t-name='sale.report_saleorder_document']" position="replace" mode="inner"><t t-call="web.external_layout">
<t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)"/><t t-set="forced_vat" t-value="doc.fiscal_position_id.foreign_vat"/><t t-set="address">
<div t-field="doc.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
<p t-if="doc.partner_id.vat">
<t t-if="doc.company_id.account_fiscal_country_id.vat_label" t-out="doc.company_id.account_fiscal_country_id.vat_label"/>
<t t-else="">Tax ID</t>: <span t-field="doc.partner_id.vat"/>
</p>
</t><t t-if="doc.partner_shipping_id == doc.partner_invoice_id and doc.partner_invoice_id != doc.partner_id or doc.partner_shipping_id != doc.partner_invoice_id">
<t t-set="information_block">
<strong>
<t t-if="doc.partner_shipping_id == doc.partner_invoice_id">
Invoicing and Shipping Address:
</t>
<t t-else="">
Invoicing Address:
</t>
</strong>
<div t-field="doc.partner_invoice_id" t-options="{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}"/>
<t t-if="doc.partner_shipping_id != doc.partner_invoice_id">
<strong>Shipping Address:</strong>
<div t-field="doc.partner_shipping_id" t-options="{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}"/>
</t>
</t>
</t><div class="page">
<div class="oe_structure"/>
<h5 class="mt-4">
<span t-if="env.context.get('proforma', False) or is_pro_forma">Pro-Forma Invoice # </span>
<span t-elif="doc.state in ['draft','sent']">Quotation # </span>
<span t-else="">Order # </span>
<span t-field="doc.name">SO0000</span>
</h5>
<div class="row mt-4 mb-2" id="informations">
<div t-if="doc.client_order_ref" class="col-auto col-3 mw-100 mb-2" name="informations_reference">
<strong>Ref: </strong>
<br/>
<span class="m-0" t-field="doc.client_order_ref" style="font-weight: bolder;">SO0000</span>
</div>
<div t-if="doc.date_order" class="col-auto col-3 mw-100 mb-2" name="informations_date">
<strong t-if="doc.state in ['draft', 'sent']">Quotation Date:</strong>
<strong t-else="">Order Date:</strong>
<br/>
<span class="m-0" t-field="doc.date_order" t-options="{"widget": "date"}">2023-12-31</span>
</div>
<div t-if="doc.validity_date and doc.state in ['draft', 'sent']" class="col-auto col-3 mw-100 mb-2" name="expiration_date">
<strong>Expiration:</strong>
<br/>
<span class="m-0" t-field="doc.validity_date">2023-12-31</span>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="doc.commitment_date">
<strong>Date d'intervention:</strong>
<br/>
<span class="m-0" t-field="doc.commitment_date" t-options="{"widget": "date"}"/>
</div>
<div t-if="doc.user_id.name" class="col-auto col-3 mw-100 mb-2">
<strong>Commercial:</strong>
<br/>
<span class="m-0" t-field="doc.user_id">Mitchell Admin</span>
</div>
</div>
<t t-set="lines_to_report" t-value="doc._get_order_lines_to_report()"/>
<t t-set="display_discount" t-value="any(l.discount for l in lines_to_report)"/>
<table class="table table-sm o_main_table table-borderless mt-4">
<thead style="display: table-row-group">
<tr>
<th name="th_description" class="text-start">Description</th>
<th name="th_quantity" class="text-end">Quantity</th>
<th name="th_priceunit" class="text-end">PU (HT)</th>
<th name="th_discount" t-if="display_discount" class="text-end">
<span>Disc.%</span>
</th>
<th name="th_subtotal" class="text-end">
<span>Amount</span>
</th>
</tr>
</thead>
<tbody class="sale_tbody">
<t t-set="current_subtotal" t-value="0"/>
<t t-foreach="lines_to_report" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal"/>
<tr t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
<t t-if="not line.display_type">
<td name="td_name">
<span t-field="line.name">Bacon Burger</span>
</td>
<td name="td_quantity" class="text-end">
<span t-field="line.product_uom_qty">3</span>
<span t-field="line.product_uom">units</span>
<span t-if="line.product_packaging_id">
(<span t-field="line.product_packaging_qty" t-options="{"widget": "integer"}"/>
<span t-field="line.product_packaging_id"/>)
</span>
</td>
<td name="td_priceunit" class="text-end">
<span t-field="line.price_unit">3</span>
</td>
<td t-if="display_discount" class="text-end">
<span t-field="line.discount">-</span>
</td>
<td t-if="not line.is_downpayment" name="td_subtotal" class="text-end o_price_total">
<span t-field="line.price_subtotal">27.00</span>
</td>
</t>
<t t-elif="line.display_type == 'line_section'">
<td name="td_section_line" colspan="99">
<span t-field="line.name">A section title</span>
</td>
<t t-set="current_section" t-value="line"/>
<t t-set="current_subtotal" t-value="0"/>
</t>
<t t-elif="line.display_type == 'line_note'">
<td name="td_note_line" colspan="99">
<span t-field="line.name">A note, whose content usually applies to the section or product above.</span>
</td>
</t>
</tr>
</t>
</tbody>
</table>
<div class="clearfix" name="so_total_summary">
<div id="total" class="row" name="total">
<div class="col-8">
<table class="table table-bordered o_table" style="width: 376.667px;">
<tbody>
<tr style="height: 38.8633px;">
<td style="width: 375.333px;">
<p>
<span class="o_small-fs">
<span class="o_small-fs">IBAN FR76 1200 6000 1582 1013 3426 714 | BIC AGRIFRPP820</span>
<br/>
<span class="o_small-fs">Domiciliation AJACCIO MEZZAVIA | Banque 12006</span>
<br/>
<span class="o_small-fs">Guichet 00015 | N° Compte 82101334267 | Clé 14</span>
</span>
</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-4">
<table class="table table-sm o_main_table">
<tfoot>
<tr class="border-black">
<td>
<strong>Montant HT</strong>
</td>
<td class="text-end" name="total_amount_untaxed">
<span t-field="doc.amount_untaxed" t-options="{"widget": "monetary", "display_currency": doc.currency_id}"/>
</td>
</tr>
<tr t-if="doc.amount_tax">
<td>
<strong>TVA</strong>
<br/>
</td>
<td class="text-end" name="total_amount_tax">
<span t-field="doc.amount_tax" t-options="{"widget": "monetary", "display_currency": doc.currency_id}"/>
</td>
</tr>
<tr>
<td>
<strong>Total</strong>
</td>
<td class="text-end" name="total_amount_total">
<span t-field="doc.amount_total" t-options="{"widget": "monetary", "display_currency": doc.currency_id}"/>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<div class="page-break"/>
<t t-if="doc.note">
<div class="mt32">
<h3/>
<p t-field="doc.note" class="mt-2"/>
</div>
</t>
</div></t>
</xpath></data>Editor is loading...
Leave a Comment