[IMP] mail: rename qunit test model
Rename javascript model `mail.qunit_test` to `QUnitTest` in order to distinguish javascript models from python models. Part of task-2701674. closes odoo/odoo#81462 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
committed by
Alexandre Kühn
parent
c7d3dcb593
commit
2418883cd5
@@ -16,7 +16,7 @@ patchRecordMethods('ComposerView', {
|
||||
});
|
||||
|
||||
addFields('ComposerView', {
|
||||
qunitTest: one2one('mail.qunit_test', {
|
||||
qunitTest: one2one('QUnitTest', {
|
||||
inverse: 'composerView',
|
||||
readonly: true,
|
||||
}),
|
||||
|
||||
@@ -6,7 +6,7 @@ import { one2one } from '@mail/model/model_field';
|
||||
import '@mail/models/message_view/message_view';
|
||||
|
||||
addFields('MessageView', {
|
||||
qunitTest: one2one('mail.qunit_test', {
|
||||
qunitTest: one2one('QUnitTest', {
|
||||
inverse: 'messageView',
|
||||
readonly: true,
|
||||
}),
|
||||
|
||||
@@ -6,7 +6,7 @@ import { one2one } from '@mail/model/model_field';
|
||||
import '@mail/models/thread_view/thread_viewer';
|
||||
|
||||
addFields('ThreadViewer', {
|
||||
qunitTest: one2one('mail.qunit_test', {
|
||||
qunitTest: one2one('QUnitTest', {
|
||||
inverse: 'threadViewer',
|
||||
readonly: true,
|
||||
}),
|
||||
|
||||
@@ -4,7 +4,7 @@ import { registerModel } from '@mail/model/model_core';
|
||||
import { one2one } from '@mail/model/model_field';
|
||||
|
||||
registerModel({
|
||||
name: 'mail.qunit_test',
|
||||
name: 'QUnitTest',
|
||||
identifyingFields: [], // singleton acceptable (only one test at a time)
|
||||
fields: {
|
||||
composer: one2one('Composer', {
|
||||
|
||||
Reference in New Issue
Block a user