Files
odoo_source/addons/mail/static/tests/models/qunit_test.js
T
tsm-odoo c68c0f3400 [IMP] mail, *: remove create component methods in tests
*: sms, snailmail, hr_holidays.

task-2871066

closes odoo/odoo#97093

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-07-29 18:34:19 +02:00

32 lines
846 B
JavaScript

/** @odoo-module **/
import { registerModel } from '@mail/model/model_core';
import { one } from '@mail/model/model_field';
registerModel({
name: 'QUnitTest',
identifyingFields: [], // singleton acceptable (only one test at a time)
fields: {
clockWatcher: one('ClockWatcher', {
inverse: 'qunitTestOwner',
isCausal: true,
}),
throttle1: one('Throttle', {
inverse: 'qunitTestOwner1',
isCausal: true,
}),
throttle2: one('Throttle', {
inverse: 'qunitTestOwner2',
isCausal: true,
}),
timer1: one('Timer', {
inverse: 'qunitTestOwner1',
isCausal: true,
}),
timer2: one('Timer', {
inverse: 'qunitTestOwner2',
isCausal: true,
}),
},
});