Files
odoo_source/addons/mail/static/tests/qunit_test.js
T
Sébastien Theys 611046040b [IMP] mail, *: avoid repetition in inverse relation type (js)
* = hr, im_livechat, website_livechat

task-2741386

closes odoo/odoo#83059

Related: odoo/enterprise#23616
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-01-20 13:29:04 +00:00

31 lines
834 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: {
composer: one('Composer', {
isCausal: true,
}),
composerView: one('ComposerView', {
inverse: 'qunitTest',
isCausal: true,
}),
messageView: one('MessageView', {
inverse: 'qunitTest',
isCausal: true,
}),
notificationListView: one('NotificationListView', {
inverse: 'qunitTestOwner',
isCausal: true,
}),
threadViewer: one('ThreadViewer', {
inverse: 'qunitTest',
isCausal: true,
}),
},
});