From 69ecfc3e790edd337ea210738985fef619e3b3b0 Mon Sep 17 00:00:00 2001 From: aliya Date: Mon, 29 Aug 2022 13:05:07 +0000 Subject: [PATCH] [FIX] l10n_in: hide l10n_in fields for other l10ns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `l10n_in_gstin_partner_id` should be hidden on the journal form for non-Indian companies. It's probably also a good idea to hide `l10n_in_tin`in the country state form whenever the state added is not in India. vat field on `res.company` should be renamed to GSTIN only when the company country is India. task-2765567 closes odoo/odoo#100542 X-original-commit: 7888a3c43e01c4578b51fc200c7c1706fffbb330 Signed-off-by: William André (wan) Signed-off-by: Aliya Tastemirova (alta) --- addons/l10n_in/__manifest__.py | 1 - addons/l10n_in/views/account_journal_views.xml | 2 +- addons/l10n_in/views/res_company_view.xml | 16 ---------------- addons/l10n_in/views/res_country_state_view.xml | 2 +- 4 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 addons/l10n_in/views/res_company_view.xml diff --git a/addons/l10n_in/__manifest__.py b/addons/l10n_in/__manifest__.py index 93e6e2f9d21..06caad91412 100644 --- a/addons/l10n_in/__manifest__.py +++ b/addons/l10n_in/__manifest__.py @@ -39,7 +39,6 @@ Sheet, now only Vertical format has been permitted Which is Supported By Odoo. 'views/product_template_view.xml', 'views/port_code_views.xml', 'views/report_invoice.xml', - 'views/res_company_view.xml', 'views/res_country_state_view.xml', 'views/res_partner_views.xml', 'views/account_tax_views.xml', diff --git a/addons/l10n_in/views/account_journal_views.xml b/addons/l10n_in/views/account_journal_views.xml index 34e4713613f..3f857c1c2aa 100644 --- a/addons/l10n_in/views/account_journal_views.xml +++ b/addons/l10n_in/views/account_journal_views.xml @@ -12,7 +12,7 @@ {'invisible': ['|', '&', ('country_code', '!=', 'IN'), ('type', '!=', 'cash'), '&', ('country_code', '=', 'IN'), ('type', 'not in', ['bank', 'cash', 'sale', 'purchase'])]} - + diff --git a/addons/l10n_in/views/res_company_view.xml b/addons/l10n_in/views/res_company_view.xml deleted file mode 100644 index abbf8d4c83a..00000000000 --- a/addons/l10n_in/views/res_company_view.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - l10n.in.view.company.form - res.company - - - - - GSTIN - - - - - diff --git a/addons/l10n_in/views/res_country_state_view.xml b/addons/l10n_in/views/res_country_state_view.xml index bdac8ff6241..282d5045413 100644 --- a/addons/l10n_in/views/res_country_state_view.xml +++ b/addons/l10n_in/views/res_country_state_view.xml @@ -7,7 +7,7 @@ - +