From 88699fbdddd8164efc21d4a2783398bc5c7101af Mon Sep 17 00:00:00 2001 From: Chinmayi Vyas Date: Thu, 21 Jun 2018 16:15:59 +0530 Subject: [PATCH] [IMP]India GST: change label of fiscal position -> Nature of transaction --- addons/l10n_in_gst/views/account_invoice_view.xml | 10 ++++++++++ addons/l10n_in_purchase/__init__.py | 2 ++ addons/l10n_in_purchase/models/__init__.py | 4 ++++ addons/l10n_in_purchase/models/purchase.py | 12 ++++++++++++ addons/l10n_in_sale/__init__.py | 2 ++ addons/l10n_in_sale/models/__init__.py | 4 ++++ addons/l10n_in_sale/models/sale.py | 12 ++++++++++++ 7 files changed, 46 insertions(+) create mode 100644 addons/l10n_in_purchase/models/__init__.py create mode 100644 addons/l10n_in_purchase/models/purchase.py create mode 100644 addons/l10n_in_sale/models/__init__.py create mode 100644 addons/l10n_in_sale/models/sale.py diff --git a/addons/l10n_in_gst/views/account_invoice_view.xml b/addons/l10n_in_gst/views/account_invoice_view.xml index ce31a82f..3ef83780 100644 --- a/addons/l10n_in_gst/views/account_invoice_view.xml +++ b/addons/l10n_in_gst/views/account_invoice_view.xml @@ -103,4 +103,14 @@ + + + Nature of Transaction + + + + Nature of Transaction + + + \ No newline at end of file diff --git a/addons/l10n_in_purchase/__init__.py b/addons/l10n_in_purchase/__init__.py index 7eb13095..0d24eb54 100644 --- a/addons/l10n_in_purchase/__init__.py +++ b/addons/l10n_in_purchase/__init__.py @@ -1,2 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details. + +from . import models \ No newline at end of file diff --git a/addons/l10n_in_purchase/models/__init__.py b/addons/l10n_in_purchase/models/__init__.py new file mode 100644 index 00000000..df179ff4 --- /dev/null +++ b/addons/l10n_in_purchase/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details. + +from . import purchase \ No newline at end of file diff --git a/addons/l10n_in_purchase/models/purchase.py b/addons/l10n_in_purchase/models/purchase.py new file mode 100644 index 00000000..3f8d7c23 --- /dev/null +++ b/addons/l10n_in_purchase/models/purchase.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# Part of Flectra. See LICENSE file for full copyright and licensing details. + +from flectra import api, fields, models, _ + + +class PurchaseOrder(models.Model): + _inherit = "purchase.order" + + fiscal_position_id = fields.Many2one('account.fiscal.position', + oldname='fiscal_position', + string='Nature of Transaction') \ No newline at end of file diff --git a/addons/l10n_in_sale/__init__.py b/addons/l10n_in_sale/__init__.py index 7eb13095..0d24eb54 100644 --- a/addons/l10n_in_sale/__init__.py +++ b/addons/l10n_in_sale/__init__.py @@ -1,2 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details. + +from . import models \ No newline at end of file diff --git a/addons/l10n_in_sale/models/__init__.py b/addons/l10n_in_sale/models/__init__.py new file mode 100644 index 00000000..5df6b4ce --- /dev/null +++ b/addons/l10n_in_sale/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details. + +from . import sale \ No newline at end of file diff --git a/addons/l10n_in_sale/models/sale.py b/addons/l10n_in_sale/models/sale.py new file mode 100644 index 00000000..e07a8cca --- /dev/null +++ b/addons/l10n_in_sale/models/sale.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# Part of Flectra. See LICENSE file for full copyright and licensing details. + +from flectra import api, fields, models, _ + + +class SaleOrder(models.Model): + _inherit = "sale.order" + + fiscal_position_id = fields.Many2one('account.fiscal.position', + oldname='fiscal_position', + string='Nature of Transaction') \ No newline at end of file