[FIX] web: fix phone widget tests with crm_voip

This commit is contained in:
David Monjoie
2017-04-11 19:44:38 +02:00
committed by Aaron Bohy
parent 2106e3dd2e
commit c8fd0e4507
@@ -1430,6 +1430,14 @@ 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
// module is responsible for testing its own behavior in its own tests.
if ('crm.voip' in odoo.__DEBUG__.services) {
assert.expect(0);
return;
}
assert.expect(5);
var form = createView({
@@ -1477,6 +1485,14 @@ 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
// module is responsible for testing its own behavior in its own tests.
if ('crm.voip' in odoo.__DEBUG__.services) {
assert.expect(0);
return;
}
assert.expect(8);
var list = createView({