From a8a9dbe5988391d73e933f7fd63bed559cc0ad09 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 6 Apr 2017 15:02:49 +0530 Subject: [PATCH] [IMP] account: Correct the settings display according to the enabled options PURPOSE ======= Clean accounting new settings. SPECIFICATION ============= - When a setting is not active, I don't want to see the green arrow sending back to the configuration part. Example : If I unactivate the follow-up levels, I don't want to see the green arrow "Follow-up levels" anymore - Add checkbox to 'TaxCloud Connection' - Also visible the label 'Fiscal Localization' and its text only if CoA is not set. - Set '# of digits' always visible and relabel to '# of digits on accounts'. Also put it inside new setting 'Chart of Accounts'. --- .../account/models/account_config_settings.py | 1 + .../views/account_config_settings_views.xml | 64 ++++++++++++------- .../views/account_config_settings_views.xml | 2 +- .../views/account_config_settings_views.xml | 2 +- .../views/account_settings_config_views.xml | 2 +- 5 files changed, 45 insertions(+), 26 deletions(-) diff --git a/addons/account/models/account_config_settings.py b/addons/account/models/account_config_settings.py index d0fcbf36a44..66fc95756ac 100644 --- a/addons/account/models/account_config_settings.py +++ b/addons/account/models/account_config_settings.py @@ -59,6 +59,7 @@ class AccountConfigSettings(models.TransientModel): module_print_docsaway = fields.Boolean(string="Docsaway") module_product_margin = fields.Boolean(string="Allow Product Margin") module_l10n_eu_service = fields.Boolean(string="EU Digital Goods VAT") + module_account_taxcloud = fields.Boolean(string="Account TaxCloud") @api.model def get_values(self): diff --git a/addons/account/views/account_config_settings_views.xml b/addons/account/views/account_config_settings_views.xml index d7aad5c3dfe..c9fd59d1954 100644 --- a/addons/account/views/account_config_settings_views.xml +++ b/addons/account/views/account_config_settings_views.xml @@ -22,34 +22,40 @@ -

Fiscal Localization

-
-
-
-
-