summaryrefslogtreecommitdiff
path: root/addons/l10n_in_stock
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_in_stock
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/l10n_in_stock')
-rw-r--r--addons/l10n_in_stock/__init__.py2
-rw-r--r--addons/l10n_in_stock/__manifest__.py23
-rw-r--r--addons/l10n_in_stock/data/product_demo.xml8
-rw-r--r--addons/l10n_in_stock/views/report_stockpicking_operations.xml10
4 files changed, 43 insertions, 0 deletions
diff --git a/addons/l10n_in_stock/__init__.py b/addons/l10n_in_stock/__init__.py
new file mode 100644
index 00000000..67dee8c6
--- /dev/null
+++ b/addons/l10n_in_stock/__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_stock/__manifest__.py b/addons/l10n_in_stock/__manifest__.py
new file mode 100644
index 00000000..4369fcd2
--- /dev/null
+++ b/addons/l10n_in_stock/__manifest__.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+{
+ 'name': 'Indian - Stock Report(GST)',
+ 'version': '1.0',
+ 'description': """GST Stock Report""",
+ 'category': 'Accounting/Localizations',
+ 'depends': [
+ 'l10n_in',
+ 'stock',
+ ],
+ 'data': [
+ 'views/report_stockpicking_operations.xml',
+ ],
+ 'demo': [
+ 'data/product_demo.xml',
+ ],
+ 'installable': True,
+ 'application': False,
+ 'auto_install': True,
+ 'license': 'LGPL-3',
+}
diff --git a/addons/l10n_in_stock/data/product_demo.xml b/addons/l10n_in_stock/data/product_demo.xml
new file mode 100644
index 00000000..52d4c17a
--- /dev/null
+++ b/addons/l10n_in_stock/data/product_demo.xml
@@ -0,0 +1,8 @@
+<odoo>
+ <data noupdate="1">
+ <record id="stock.product_cable_management_box" model="product.product">
+ <field name="l10n_in_hsn_code">4819.60.00</field>
+ <field name="l10n_in_hsn_description">Box files, letter trays, storage boxes and similar articles, of a kind used in offices, shops or the like</field>
+ </record>
+ </data>
+</odoo>
diff --git a/addons/l10n_in_stock/views/report_stockpicking_operations.xml b/addons/l10n_in_stock/views/report_stockpicking_operations.xml
new file mode 100644
index 00000000..cb6fb012
--- /dev/null
+++ b/addons/l10n_in_stock/views/report_stockpicking_operations.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <template id="gst_report_picking_inherit" inherit_id="stock.report_picking">
+ <xpath expr="//span[@t-field='ml.product_id.description_picking']" position="after">
+ <t t-if="ml.product_id and ml.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="ml.product_id.l10n_in_hsn_code"/></h6></t>
+ </xpath>
+ </template>
+
+</odoo>