Snippets for blanketorder
This commit is contained in:
1 parent
ae9689737f
commit
6e5df096ac
8 files changed
+143
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="/t/t/div/div[3]" position="after">
|
||||
<div class="row" style="margin-top: 1rem; margin-bottom: 1rem">
|
||||
<div class="col">
|
||||
<span>Payment Terms: </span>
|
||||
<span t-field="doc.payment_term_id.name"/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//table[@class='table table-condensed']/thead/tr" position="replace">
|
||||
<tr>
|
||||
<th>Product</th>
|
||||
<th class="text-right">Original Qty</th>
|
||||
<th class="text-center">Scheduled Date</th>
|
||||
<th class="text-right">Unit Price</th>
|
||||
<th class="text-right">Amount</th>
|
||||
</tr>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//tbody[@class='sale_tbody']/t" position="replace">
|
||||
<t t-foreach="doc.line_ids" t-as="l">
|
||||
<tr>
|
||||
<td>
|
||||
<span t-field="l.product_id"/>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<span t-field="l.original_uom_qty"/>
|
||||
<span t-field="l.product_uom" groups="uom.group_uom"/>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span t-field="l.date_schedule"/>
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
<span t-field="l.price_unit"/>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<span t-field="l.price_subtotal" t-options="{"widget": "monetary", "display_currency": l.currency_id}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//table[@class='table table-condensed']" position="attributes">
|
||||
<attribute name="style" add="font-size:16px"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@class='col-xs-4 pull-right']" position="attributes">
|
||||
<attribute name="style" add="font-size:16px"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//t/t/div/div[2]" position="replace">
|
||||
<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-esc="doc.company_id.country_id.vat_label or 'Tax ID'"/>: <span t-field="doc.partner_id.vat"/></p>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//t/t/div/div[2]" position="replace">
|
||||
|
||||
<div class="row mt32 mb32" id="informations" style="font-size:16px; margin-bottom: 0rem">
|
||||
|
||||
<div t-if="doc.client_order_ref" class="col-auto col-3 mw-100 mb-2">
|
||||
<strong>Your Reference:</strong>
|
||||
<p t-field="doc.client_order_ref"/>
|
||||
</div>
|
||||
|
||||
<div class="col-auto col-3 mw-100 mb-2">
|
||||
<strong>Order Date:</strong>
|
||||
<p t-field="doc.create_date" t-options='{"widget": "date"}'/>
|
||||
</div>
|
||||
|
||||
<div class="col-auto col-3 mw-100 mb-2">
|
||||
<strong>Validity Date:</strong>
|
||||
<p t-field="doc.validity_date"/>
|
||||
</div>
|
||||
|
||||
<div t-if="doc.user_id.name" class="col-auto col-3 mw-100 mb-2">
|
||||
<strong>Salesperson:</strong>
|
||||
<p t-field="doc.user_id"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//div[@class='col-xs-4 pull-right']" position="attributes">
|
||||
<attribute name="t-attf-class">#{'col-4' if report_type != 'html' else 'col-sm-7 col-md-5'} ml-auto</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//h2" position="replace">
|
||||
<h2>
|
||||
<span>Blanket Order # </span>
|
||||
<span t-field="doc.name"/>
|
||||
</h2>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="/t/t/div/table/thead/tr/th[1]" position="before">
|
||||
<th>
|
||||
<span>Pos</span>
|
||||
</th>
|
||||
|
||||
<xpath expr="//table/tbody/t[2][@t-foreach='doc.order_line']" position="before">
|
||||
<t t-set="index" t-value="1"/>
|
||||
</xpath>
|
||||
|
||||
</xpath>
|
||||
<xpath expr="/t/t/div/table/tbody/t[1]/tr[1]/td[1]" position="before">
|
||||
<td>
|
||||
<span t-esc="index"/><t t-set="index" t-value="index+1"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
Reference in new issue
Block a user