Files
tra_backend/reports/views/invoice_report.xml
2020-09-16 00:48:29 +05:30

144 lines
5.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_invoice_inherit_form_view2" model="ir.ui.view">
<field name="name">account_invoice_inherit.inherit_form_view</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="type">form</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='journal_id']" position="after">
<field name="txn_id"/>
</xpath>
<xpath expr="//field[@name='invoice_payment_ref']" position="after">
<field name="note"/>
</xpath>
</field>
</record>
<template id="report_invoices_inherit1" inherit_id="bi_professional_reports_templates.fency_report_invoice_document">
<xpath expr="//t[@t-call='web.external_layout']/div/div[1]" position="before">
<strong>TRN#</strong>
<span t-esc="o.txn_id"/><br/>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="before">
<!-- <strong>TRN#</strong>
<span t-esc="o.txn_id"/><br/> -->
<div class="row">
<div class="col-4">
<strong>YOUR ORDER NO:</strong><br/>
</div>
<div class="col-4">
</div>
<div class="col-4">
<span t-if="o.type == 'out_invoice'">
<div><strong>D.O.NOS</strong><br/></div>
<div><strong>M.R.V NO.</strong><br/></div>
</span>
<span t-if="o.type == 'out_refund'">
<div><strong>Our D.O.NOS</strong><br/></div>
<div><strong>Our M.R.V NO.</strong><br/></div>
</span>
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Sale Code:</strong>
<span t-esc="o.invoice_origin"/><br/>
<span t-if="o.type == 'out_refund'">
<strong>Cost Code:</strong>
</span>
</div>
</div>
</xpath>
<xpath expr="//div[@style='padding-top:50px;']" position="after">
<span>NOTE</span><br/>
<span t-esc="o.note"/>
</xpath>
<xpath expr="//table[@class='table table-sm']/thead/tr/th[1]" position="before">
<th style="background-color:#3498DB !important;color:#FFF">S.No</th>
<!-- <th style="background-color:#3498DB !important;color:#FFF">Code</th> -->
</xpath>
<xpath expr="//table[@class='table table-sm']/tbody/tr/td[1]" position="before">
<!-- <t t-set="seq_move" t-value="1"/>
<td colspan="2">
<t t-esc="seq_move"></t>
</td>
<t t-set="seq_move" t-value="seq_move+1"/> -->
<td><span t-esc="l.product_id.default_code"/></td>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
<p>E &amp; OE</p><br/>
<span>Print Date: <span t-esc="o.print_date"/></span><br/>
<span>Printed by: <span t-esc="o.signed_by"/></span>
</xpath>
</template>
<template id="report_invoices_inherit2" inherit_id="bi_professional_reports_templates.classic_report_invoice_document">
<xpath expr="//t[@t-call='web.external_layout']/div/div[1]" position="before">
<strong>TRN#</strong>
<span t-esc="o.txn_id"/><br/>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="before">
<div class="row">
<div class="col-4">
<strong>YOUR ORDER NO:</strong><br/>
</div>
<div class="col-4">
</div>
<div class="col-4">
<div class="text-right"><strong>D.O.NOS</strong><br/></div>
<div class="text-right"><strong>M.R.V NO.</strong><br/></div>
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Sale Code:</strong>
</div>
</div>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
<p>E &amp; OE</p><br/>
<span>Print Date: <span t-esc="o.print_date"/></span><br/>
<span>Printed by: <span t-esc="o.signed_by"/></span>
</xpath>
</template>
<template id="report_invoices_inherit3" inherit_id="bi_professional_reports_templates.modern_report_invoice_document">
<xpath expr="//t[@t-call='web.external_layout']/div/div[1]" position="before">
<strong>TRN#</strong>
<span t-esc="o.txn_id"/><br/>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="before">
<strong>TRN#</strong>
<span t-esc="o.txn_id"/><br/>
<strong>YOUR ORDER NO:</strong><br/>
<div class="text-right"><strong>D.O.NOS</strong><br/></div>
<div class="text-right"><strong>M.R.V NO.</strong><br/></div>
<strong>Sale Code:</strong>
<span t-esc="o.invoice_origin"/>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
<p>E &amp; OE</p><br/>
<span>Print Date: <span t-esc="o.print_date"/></span><br/>
<span>Printed by: <span t-esc="o.signed_by"/></span>
</xpath>
</template>
<template id="report_invoices_inherit4" inherit_id="bi_professional_reports_templates.odoo_std_report_invoice_document">
<xpath expr="//t[@t-call='web.external_layout']/div/div[1]" position="before">
<strong>TRN#</strong>
<span t-esc="o.txn_id"/><br/>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/div[2]" position="before">
<strong>TRN#</strong>
<span t-esc="o.txn_id"/><br/>
<strong>YOUR ORDER NO:</strong><br/>
<div class="text-right"><strong>D.O.NOS</strong><br/></div>
<div class="text-right"><strong>M.R.V NO.</strong><br/></div>
<strong>Sale Code:</strong>
<span t-esc="o.invoice_origin"/>
</xpath>
<xpath expr="//t[@t-call='web.external_layout']/div/p[last()]" position="after">
<p>E &amp; OE</p><br/>
<span>Print Date: <span t-esc="o.print_date"/></span><br/>
<span>Printed by: <span t-esc="o.signed_by"/></span>
</xpath>
</template>
</odoo>