summaryrefslogtreecommitdiff
path: root/addons/l10n_in_purchase
diff options
context:
space:
mode:
authorForam Katharotiya <fka@tinyerp.com>2017-09-18 22:17:43 +0200
committerqdp-odoo <qdp@odoo.com>2017-09-18 22:17:43 +0200
commit2b3c8e6ca9777f6264ecb3d1510dd292ed30ab9f (patch)
tree3f958808a62b08c60e1f042e27cf66fa2fa8ded5 /addons/l10n_in_purchase
parent194c38f09d2a76aaec6a514f86484eb8e9b6e08c (diff)
[IMP] l10n_in: GST introduced as new legal requirements.
aka 'Indian localization out of the box'. Details: GST introduced, module refactored. Update GST chart of account, tags and SGST, CGST & IGST taxes. Replace vat label with GSTIN in reports & views. Added HSN Code field and display it on invoice form view & report. Added pin number field in res_country_state. Show the total amount in words based on Indian numbering system on form view of customer/supplier invoice/refund. Arrange address format of India country. l10n_in_schedule6: Introduce new GST taxes, chart of accounts & account tags. l10n_in_sale, l10n_in_purchase, l10n_in_stock: added modules to add hsn code and replace vat with gstin in sale, purchase & stock reports Was task: 33241. Was PR #18952
Diffstat (limited to 'addons/l10n_in_purchase')
-rw-r--r--addons/l10n_in_purchase/__init__.py2
-rw-r--r--addons/l10n_in_purchase/__manifest__.py19
-rw-r--r--addons/l10n_in_purchase/views/report_purchase_order.xml17
3 files changed, 38 insertions, 0 deletions
diff --git a/addons/l10n_in_purchase/__init__.py b/addons/l10n_in_purchase/__init__.py
new file mode 100644
index 00000000000..67dee8c60db
--- /dev/null
+++ b/addons/l10n_in_purchase/__init__.py
@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
diff --git a/addons/l10n_in_purchase/__manifest__.py b/addons/l10n_in_purchase/__manifest__.py
new file mode 100644
index 00000000000..a37f00026d3
--- /dev/null
+++ b/addons/l10n_in_purchase/__manifest__.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+{
+ 'name': 'Indian - Purchase Report(GST)',
+ 'version': '1.0',
+ 'description': """GST Purchase Report""",
+ 'category': 'Localization',
+ 'depends': [
+ 'l10n_in',
+ 'purchase',
+ ],
+ 'data': [
+ 'views/report_purchase_order.xml',
+ ],
+ 'installable': True,
+ 'application': False,
+ 'auto_install': True,
+}
diff --git a/addons/l10n_in_purchase/views/report_purchase_order.xml b/addons/l10n_in_purchase/views/report_purchase_order.xml
new file mode 100644
index 00000000000..398e9fcf068
--- /dev/null
+++ b/addons/l10n_in_purchase/views/report_purchase_order.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <template id="gst_report_purchaseorder_document_inherit" inherit_id="purchase.report_purchaseorder_document">
+ <xpath expr="//tr[@t-foreach='o.order_line']/td[1]" position="replace">
+
+ <td><span t-field="line.name"/><t t-if="line.product_id.l10n_in_hsn_code and o.company_id.country_id.code == 'IN'"><h6><strong class="ml16">HSN/SAC Code:</strong> <span t-field="line.product_id.l10n_in_hsn_code"/></h6></t></td>
+ </xpath>
+ </template>
+
+ <template id="gst_report_purchasequotation_document_inherit" inherit_id="purchase.report_purchasequotation_document">
+ <xpath expr="//tr[@t-foreach='o.order_line']/td[1]" position="replace">
+ <td><span t-field="order_line.name"/><t t-if="order_line.product_id.l10n_in_hsn_code and o.company_id.country_id.code == 'IN'"><h6><strong class="ml16">HSN/SAC Code:</strong> <span t-field="order_line.product_id.l10n_in_hsn_code"/></h6></t></td>
+ </xpath>
+ </template>
+
+</odoo>