diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_in/views/report_invoice.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/l10n_in/views/report_invoice.xml')
| -rw-r--r-- | addons/l10n_in/views/report_invoice.xml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/addons/l10n_in/views/report_invoice.xml b/addons/l10n_in/views/report_invoice.xml new file mode 100644 index 00000000..f77aa013 --- /dev/null +++ b/addons/l10n_in/views/report_invoice.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <template id="l10n_in_report_invoice_document_inherit" inherit_id="account.report_invoice_document"> + + <xpath expr="//span[@t-field='o.partner_id.vat']" position="attributes"> + <attribute name="t-if">o.company_id.country_id.code != 'IN'</attribute> + </xpath> + <xpath expr="//span[@t-field='o.partner_id.vat']" position="after"> + <span t-field="o.l10n_in_gstin" t-if="o.company_id.country_id.code == 'IN'"/> + </xpath> + <xpath expr="//t[@t-set='address']" position="inside"> + <t t-if="o.company_id.country_id.code == 'IN' and o.l10n_in_state_id" class="mt16"> + <t t-if="o.move_type in ('in_invoice', 'in_refund')"> + Destination of supply: <span t-esc="o.l10n_in_state_id.name"/> + </t> + <t t-if="o.move_type in ('out_invoice', 'out_refund')"> + Place of supply: <span t-esc="o.l10n_in_state_id.name"/> + </t> + </t> + </xpath> + <xpath expr="//p[@t-if='o.narration']" position="before"> + <t t-if="o.company_id.country_id.code == 'IN'"> + <p id="total_in_words" class="mb16"> + <strong>Total (In Words): </strong> + <span t-field="o.amount_total_words"/> + </p> + </t> + </xpath> + + <xpath expr="//table[@name='invoice_line_table']/thead/tr/th[1]" position="after"> + <t t-if="o.company_id.country_id.code == 'IN'"> + <th>HSN/SAC</th> + </t> + </xpath> + + <xpath expr="//t[@name='account_invoice_line_accountable']/td[1]" position="after"> + <td t-if="o.company_id.country_id.code == 'IN'"> + <span t-if="line.product_id.l10n_in_hsn_code" t-field="line.product_id.l10n_in_hsn_code"></span> + </td> + </xpath> + + <xpath expr="//h2" position="replace"> + <h2> + <span t-if="o.move_type == 'out_invoice' and o.state == 'open'" t-field="o.journal_id.name"/> + <span t-if="o.move_type == 'out_invoice' and o.state == 'draft'">Draft <span t-field="o.journal_id.name"/></span> + <span t-if="o.move_type == 'out_invoice' and o.state == 'cancel'">Cancelled <span t-field="o.journal_id.name"/></span> + <span t-if="o.move_type == 'out_refund'">Credit Note</span> + <span t-if="o.move_type == 'in_refund'">Vendor Credit Note</span> + <span t-if="o.move_type == 'in_invoice'">Vendor Bill</span> + <span t-field="o.name"/> + </h2> + </xpath> + + </template> + +</odoo> |
