[IMP] web: remove useless service name

We use the registry keys as name for the services.
This commit is contained in:
Christophe Matthieu
2018-08-09 02:31:59 +02:00
parent cf4c4a11b7
commit a8e4e625f4
23 changed files with 135 additions and 113 deletions
+14 -10
View File
@@ -65,11 +65,13 @@ QUnit.test('Button with barcode_trigger', function (assert) {
'</header>' +
'</form>',
res_id: 2,
services: [NotificationService.extend({
notify: function (params) {
assert.step(params.type);
}
})],
services: {
notification: NotificationService.extend({
notify: function (params) {
assert.step(params.type);
}
}),
},
intercepts: {
execute_action: function (event) {
assert.strictEqual(event.data.action_data.name, 'do_something',
@@ -512,11 +514,13 @@ QUnit.test('barcode_scanned only trigger error for active view', function (asser
'</form>',
},
res_id: 1,
services: [NotificationService.extend({
notify: function (params) {
assert.step(params.type);
}
})],
services: {
notification: NotificationService.extend({
notify: function (params) {
assert.step(params.type);
}
}),
},
viewOptions: {
mode: 'edit',
},