Files
odoo_source/addons/l10n_in/views/report_invoice.xml
T
Jigar Vaghela 205430ffb5 [IMP] l10n_in: Simplify GST invoice
GST Treatment:
   * Is show that how This invoice or partner is treated in GST
   * Set default value in customer
   * This is help in GST retrun filing.
   * Value of treamtmnet as below
	- Registered Business - Regular
	- Registered Business - Composition
	- Unregistered Business
	- Consumer
	- Overseas
	- Special Economic Zone
	- Deemed Export
   * GSTIN is required in
	- Registered Business - Regular
	- Registered Business - Composition
	- Special Economic Zone
	- Deemed Export

GSTIN:
   * GST identification number or GST number
   * There can be multiple GSTIN for a single person, being an assessee under the Income Tax Act for every State or Union Territory in which such person operates from
   * Add Validate of this number using regular expression

remove field l10n_in_export_type and l10n_in_import_export becouse it's covered by GST Treatment
remove field l10n_in_partner_vat becouse not use anyware.
2020-04-30 07:20:06 +00:00

57 lines
2.6 KiB
XML

<?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>