From 442326bc298f2aeb579ab40c4b7bdade724ced4e Mon Sep 17 00:00:00 2001 From: Florian Gilbert Date: Tue, 28 Apr 2020 06:50:08 +0000 Subject: [PATCH] [REF] account: adapt main_flow tour and __init__.py for new sync module This part of the tour can't work with the new online synchronization module (account_online_synchronization) due to the fact that we are using an iframe to display the list of institutions and therefore those steps won't work within the iframe. Also remove account_plaid & account_yodlee from _auto_install_l10n as those modules don't exists anymore. closes odoo/odoo#50267 Related: odoo/upgrade#1780 Related: odoo/enterprise#8200 Signed-off-by: Cedric Snauwaert (csn) --- addons/account/__init__.py | 4 ---- addons/account/models/res_config_settings.py | 7 ------- .../views/res_config_settings_views.xml | 13 ------------ .../static/tests/tours/main_flow.js | 20 ------------------- 4 files changed, 44 deletions(-) diff --git a/addons/account/__init__.py b/addons/account/__init__.py index 9101cec83aa..a927c912c6a 100644 --- a/addons/account/__init__.py +++ b/addons/account/__init__.py @@ -46,12 +46,8 @@ def _auto_install_l10n(env): module_list.append('l10n_' + country_code.lower()) else: module_list.append('l10n_generic_coa') - if country_code == 'US': - module_list.append('account_plaid') if country_code in ['US', 'CA']: module_list.append('account_check_printing') - if country_code in ['US', 'AU', 'NZ', 'CA', 'CO', 'EC', 'ES', 'FR', 'IN', 'MX', 'GB']: - module_list.append('account_yodlee') if country_code in SYSCOHADA_LIST + [ 'AT', 'BE', 'CA', 'CO', 'DE', 'EC', 'ES', 'ET', 'FR', 'GR', 'IT', 'LU', 'MX', 'NL', 'NO', 'PL', 'PT', 'RO', 'SI', 'TR', 'GB', 'VE', 'VN' diff --git a/addons/account/models/res_config_settings.py b/addons/account/models/res_config_settings.py index 909394d92f4..e3989a7355d 100644 --- a/addons/account/models/res_config_settings.py +++ b/addons/account/models/res_config_settings.py @@ -73,8 +73,6 @@ class ResConfigSettings(models.TransientModel): '-This installs the account_batch_payment module.') module_account_sepa = fields.Boolean(string='SEPA Credit Transfer (SCT)') module_account_sepa_direct_debit = fields.Boolean(string='Use SEPA Direct Debit') - module_account_plaid = fields.Boolean(string="Plaid Connector") - module_account_yodlee = fields.Boolean("Bank Interface - Sync your bank feeds automatically") module_account_bank_statement_import_qif = fields.Boolean("Import .qif files") module_account_bank_statement_import_ofx = fields.Boolean("Import in .ofx format") module_account_bank_statement_import_csv = fields.Boolean("Import in .csv format") @@ -149,11 +147,6 @@ class ResConfigSettings(models.TransientModel): if self.module_account_budget: self.group_analytic_accounting = True - @api.onchange('module_account_yodlee') - def onchange_account_yodlee(self): - if self.module_account_yodlee: - self.module_account_plaid = True - @api.onchange('tax_exigibility') def _onchange_tax_exigibility(self): res = {} diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index 61994dadaa4..dcd749815cb 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -464,19 +464,6 @@

Bank & Cash

-
-
- -
-
-
-
diff --git a/odoo/addons/test_main_flows/static/tests/tours/main_flow.js b/odoo/addons/test_main_flows/static/tests/tours/main_flow.js index 7320b120b94..a65312b484a 100644 --- a/odoo/addons/test_main_flows/static/tests/tours/main_flow.js +++ b/odoo/addons/test_main_flows/static/tests/tours/main_flow.js @@ -956,26 +956,6 @@ tour.stepUtils.mobileModifier(tour.stepUtils.autoExpandMoreButtons('.o_control_p trigger: '.o_app[data-menu-xmlid="account_accountant.menu_accounting"]', content: _t('Go to Accounting'), position: 'bottom', -}, { - edition: "enterprise", - trigger: 'a[data-name=action_configure_bank_journal]', - content: _t('Configure Bank Journal'), - position: 'bottom', -}, { - edition: "enterprise", - trigger: '.js_configure_manually', - content: _t('Enter manual data for bank account'), - position: 'bottom', -}, { - edition: "enterprise", - trigger: ".o_field_widget[name=acc_number]", - content: _t("Enter an account number"), - position: "right", - run: "text 867656544", -}, { - trigger: ".modal-footer .btn-primary", - content: _t('Save'), - position: 'bottom', }, { edition: "enterprise", trigger: 'div[name=bank_statement_create_button] > a[data-name=create_bank_statement], div[name=bank_statement_create_button] > a[data-name=create_bank_statement]',