From c0ceae2f93df5d08e5c4a99812dd5629f2d433bf Mon Sep 17 00:00:00 2001 From: fwi-odoo Date: Thu, 6 Jul 2017 10:40:18 +0200 Subject: [PATCH] [FIX] crm: module crm_voip doesn't exist anymore Since the refactoring of VOIP, there is no more a module crm_voip but only voip. --- addons/base_setup/models/res_config_settings.py | 1 + .../base_setup/views/res_config_settings_views.xml | 2 +- addons/crm/models/res_config_settings.py | 1 - addons/crm/views/res_config_settings_views.xml | 14 -------------- .../web/static/tests/fields/basic_fields_tests.js | 12 ++++++------ addons/web/static/tests/views/form_tests.js | 6 +++--- 6 files changed, 11 insertions(+), 25 deletions(-) diff --git a/addons/base_setup/models/res_config_settings.py b/addons/base_setup/models/res_config_settings.py index b2da7ff378f..19511627002 100644 --- a/addons/base_setup/models/res_config_settings.py +++ b/addons/base_setup/models/res_config_settings.py @@ -23,6 +23,7 @@ class ResConfigSettings(models.TransientModel): module_base_gengo = fields.Boolean("Translate Your Website with Gengo") module_inter_company_rules = fields.Boolean("Manage Inter Company") module_pad = fields.Boolean("Collaborative Pads") + module_voip = fields.Boolean("Asterisk (VoIP)") company_share_partner = fields.Boolean(string='Share partners to all companies', help="Share your partners to all companies defined in your instance.\n" " * Checked : Partners are visible for every companies, even if a company is defined on the partner.\n" diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml index d83cc4d1d99..7f0932f3adb 100644 --- a/addons/base_setup/views/res_config_settings_views.xml +++ b/addons/base_setup/views/res_config_settings_views.xml @@ -118,7 +118,7 @@

Integrations

-
+
diff --git a/addons/crm/models/res_config_settings.py b/addons/crm/models/res_config_settings.py index b4550d1bd93..52d8f220d1f 100644 --- a/addons/crm/models/res_config_settings.py +++ b/addons/crm/models/res_config_settings.py @@ -11,7 +11,6 @@ class ResConfigSettings(models.TransientModel): generate_lead_from_alias = fields.Boolean('Manual Assignation of Emails') group_use_lead = fields.Boolean(string="Leads", implied_group='crm.group_use_lead') module_crm_phone_validation = fields.Boolean("Phone Validation") - module_crm_voip = fields.Boolean("Asterisk (VoIP)") module_web_clearbit = fields.Boolean("Customer Autocomplete") def _find_default_lead_alias_id(self): diff --git a/addons/crm/views/res_config_settings_views.xml b/addons/crm/views/res_config_settings_views.xml index 98c6f890ba8..dd979b590ee 100644 --- a/addons/crm/views/res_config_settings_views.xml +++ b/addons/crm/views/res_config_settings_views.xml @@ -77,20 +77,6 @@
-

Integrations

-
-
-
- -
-
-
-
-
diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js index 6347ed63432..2e98a634409 100644 --- a/addons/web/static/tests/fields/basic_fields_tests.js +++ b/addons/web/static/tests/fields/basic_fields_tests.js @@ -2646,10 +2646,10 @@ QUnit.module('basic_fields', { }); QUnit.test('phone field in form view on normal screens', function (assert) { - // The behavior of this widget is completely altered by crm_voip so this - // test is irrelevant and fails if crm_voip is installed. The enterprise + // The behavior of this widget is completely altered by voip so this + // test is irrelevant and fails if voip is installed. The enterprise // module is responsible for testing its own behavior in its own tests. - if ('crm.voip' in odoo.__DEBUG__.services) { + if ('voip.user_agent' in odoo.__DEBUG__.services) { assert.expect(0); return; } @@ -2701,10 +2701,10 @@ QUnit.module('basic_fields', { }); QUnit.test('phone field in editable list view on normal screens', function (assert) { - // The behavior of this widget is completely altered by crm_voip so this - // test is irrelevant and fails if crm_voip is installed. The enterprise + // The behavior of this widget is completely altered by voip so this + // test is irrelevant and fails if voip is installed. The enterprise // module is responsible for testing its own behavior in its own tests. - if ('crm.voip' in odoo.__DEBUG__.services) { + if ('voip.user_agent' in odoo.__DEBUG__.services) { assert.expect(0); return; } diff --git a/addons/web/static/tests/views/form_tests.js b/addons/web/static/tests/views/form_tests.js index f87eea2d154..33f763a9ecc 100644 --- a/addons/web/static/tests/views/form_tests.js +++ b/addons/web/static/tests/views/form_tests.js @@ -3584,10 +3584,10 @@ QUnit.module('Views', { }); QUnit.test('navigation with tab key in readonly form view', function (assert) { - // The behavior of the phone widget is completely altered by crm_voip so - // this test fails if crm_voip is installed. The enterprise module is + // The behavior of the phone widget is completely altered by voip so + // this test fails if voip is installed. The enterprise module is // responsible for testing its own behavior in its own tests. - if ('crm.voip' in odoo.__DEBUG__.services) { + if ('voip.user_agent' in odoo.__DEBUG__.services) { assert.expect(0); return; }