Untitled
unknown
plain_text
10 months ago
11 kB
3
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"><h6><span class="o_small-fs">
Invoicing and Shipping Address:
</span></h6></t>
<t t-else=""><h6><span class="o_small-fs">
Invoicing Address:
</span></h6></t>
</strong>
<div t-field="doc.partner_invoice_id" t-options="{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}" class="o_small-fs"/>
<t t-if="doc.partner_shipping_id != doc.partner_invoice_id">
<strong><span class="o_small-fs">Shipping Address:</span></strong>
<div t-field="doc.partner_shipping_id" t-options="{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}" class="o_small-fs"/>
</t>
</t>
</t><div class="page">
<div class="oe_structure"><h6/></div>
<p class="mt-4">
<span t-if="env.context.get('proforma', False) or is_pro_forma"><span class="base-fs">Pro-Forma Invoice # </span></span>
<span t-elif="doc.state in ['draft','sent']"><p><span class="base-fs">Quotation # </span></p></span>
<span t-else=""><p><span class="base-fs">Order # </span></p></span>
<span t-field="doc.name">SO0000</span>
</p>
<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"><h6><strong><span class="o_small-fs">Référence : </span></strong><span class="o_small-fs"> </span><span class="m-0 o_small-fs" t-field="doc.client_order_ref" style="font-weight: bolder;">SO0000</span>
</h6></div>
<div t-if="doc.date_order" class="col-auto col-3 mw-100 mb-2" name="informations_date"><h6>
<strong t-if="doc.state in ['draft', 'sent']"><span class="o_small-fs">Quotation Date:</span></strong>
<strong t-else=""><h6><span class="o_small-fs">Order Date:</span></h6></strong>
<span class="o_small-fs"><br/></span>
<span class="m-0 o_small-fs" t-field="doc.date_order" t-options="{"widget": "date"}">2023-12-31</span>
</h6></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"><h6>
<strong><span class="o_small-fs">Expiration:</span></strong><span class="o_small-fs"> </span><span class="m-0 o_small-fs" t-field="doc.validity_date">2023-12-31</span>
</h6></div>
<div class="col-auto col-3 mw-100 mb-2" t-if="doc.commitment_date"><h6>
<strong><span class="o_small-fs">Date d'intervention:</span></strong><span class="o_small-fs"><br/></span><span class="m-0 o_small-fs" t-field="doc.commitment_date" t-options="{"widget": "date"}"/>
</h6></div>
<div t-if="doc.user_id.name" class="col-auto col-3 mw-100 mb-2"><h6><strong><span class="o_small-fs">Commercial:</span></strong><span class="o_small-fs"> </span><span class="m-0 o_small-fs" t-field="doc.user_id">Mitchell Admin</span>
</h6></div>
</div>
<t t-set="lines_to_report" t-value="doc._get_order_lines_to_report()"><h6/></t>
<t t-set="display_discount" t-value="any(l.discount for l in lines_to_report)"><h6/></t>
<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"><h6><span class="o_small-fs">Description</span></h6></th>
<th name="th_quantity" class="text-end"><h6><span class="o_small-fs">Quantity</span></h6></th>
<th name="th_priceunit" class="text-end"><h6><span class="o_small-fs">PU (HT)</span></h6></th>
<th name="th_discount" t-if="display_discount" class="text-end">
<span><h6><span class="o_small-fs">Disc.%</span></h6></span>
</th>
<th name="th_subtotal" class="text-end">
<span><h6><span class="o_small-fs">Amount</span></h6></span>
</th>
</tr>
</thead>
<tbody class="sale_tbody">
<t t-set="current_subtotal" t-value="0"><h6/></t>
<t t-foreach="lines_to_report" t-as="line">
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal"><h6/></t>
<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"><h6>
<span t-field="line.name" class="o_small-fs">Bacon Burger</span>
</h6></td>
<td name="td_quantity" class="text-end"><h6>
<span t-field="line.product_uom_qty" class="o_small-fs">3</span><span class="o_small-fs">
</span><span t-if="line.product_packaging_id"><span class="o_small-fs">(</span><span t-field="line.product_packaging_qty" t-options="{"widget": "integer"}" class="o_small-fs"/><span class="o_small-fs">
</span><span t-field="line.product_packaging_id" class="o_small-fs"/><span class="o_small-fs">)
</span></span>
</h6></td>
<td name="td_priceunit" class="text-end"><h6>
<span t-field="line.price_unit" class="o_small-fs">3</span>
</h6></td>
<td t-if="display_discount" class="text-end"><h6>
<span t-field="line.discount" class="o_small-fs">-</span>
</h6></td>
<td t-if="not line.is_downpayment" name="td_subtotal" class="text-end o_price_total"><h6>
<span t-field="line.price_subtotal" class="o_small-fs">27.00</span>
</h6></td>
</t>
<t t-elif="line.display_type == 'line_section'">
<td name="td_section_line" colspan="99"><h6>
<span t-field="line.name" class="o_small-fs">A section title</span>
</h6></td>
<t t-set="current_section" t-value="line"><h6/></t>
<t t-set="current_subtotal" t-value="0"><h6/></t>
</t>
<t t-elif="line.display_type == 'line_note'">
<td name="td_note_line" colspan="99"><h6>
<span t-field="line.name" class="o_small-fs">A note, whose content usually applies to the section or product above.</span>
</h6></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: 348.625px;">
<tbody>
<tr style="height: 38.8633px;">
<td style="width: 347.375px;">
<h6>
<span class="o_small-fs">
IBAN FR76 1200 6000 1582 1013 3426 714 | BIC AGRIFRPP820 <br/>Domiciliation AJACCIO MEZZAVIA | Banque 12006 <br/>Guichet 00015 | N° Compte 82101334267 | Clé 14
</span>
</h6>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-4">
<table class="table table-sm o_main_table" style="width: 228.711px; margin-left: 2.8747px;">
<tfoot>
<tr class="border-black" style="height: 37.2461px;">
<td style="width: 74.9844px;"><h5>
<strong><span class="base-fs">Montant HT</span></strong>
</h5></td><td class="text-end" name="total_amount_untaxed" style="width: 153.727px;"><h5>
<span t-field="doc.amount_untaxed" t-options="{"widget": "monetary", "display_currency": doc.currency_id}" class="base-fs"/>
</h5></td>
</tr>
<tr t-if="doc.amount_tax" style="height: 43.2227px;">
<td style="width: 86.875px;"><h5>
<strong><span class="base-fs">TVA</span></strong>
<span class="base-fs"><br/></span>
</h5></td><td class="text-end" name="total_amount_tax" style="width: 136.211px;"><h5>
<span t-field="doc.amount_tax" t-options="{"widget": "monetary", "display_currency": doc.currency_id}" class="base-fs"/>
</h5></td>
</tr>
<tr style="height: 43.2227px;">
<td style="width: 86.875px;"><h5>
<strong><span class="base-fs">Total</span></strong>
</h5></td><td class="text-end" name="total_amount_total" style="width: 136.211px;"><h5>
<span t-field="doc.amount_total" t-options="{"widget": "monetary", "display_currency": doc.currency_id}" class="base-fs"/>
</h5></td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<div class="page-break"><h5/></div>
<t t-if="doc.note">
<div class="mt32">
<h5/>
<p t-field="doc.note" class="mt-2"/>
</div>
</t>
</div></t>
</xpath></data>Editor is loading...
Leave a Comment