[IMP] mail, *: move up model files

Move model definition files from `models/thing/thing.js` to
`models/thing.js` and remove the now empty intermediate directory.

Task-2759582
 * = calendar, crm_livechat, hr, im_livechat, mail_bot, sms, snailmail,
     website_livechat, website_slides

closes odoo/odoo#86464

Related: odoo/enterprise#25291
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2022-03-17 11:27:59 +01:00
parent df147ac6f2
commit e16976ddfc
135 changed files with 65 additions and 66 deletions
@@ -3,7 +3,7 @@
import { addFields, patchIdentifyingFields } from '@mail/model/model_core';
import { one } from '@mail/model/model_field';
// ensure that the model definition is loaded before the patch
import '@mail/models/clock_watcher/clock_watcher';
import '@mail/models/clock_watcher';
patchIdentifyingFields('ClockWatcher', identifyingFields => {
identifyingFields[0].push('qunitTestOwner');
@@ -4,7 +4,7 @@ import { addFields, patchIdentifyingFields, patchRecordMethods } from '@mail/mod
import { one } from '@mail/model/model_field';
import { replace } from '@mail/model/model_field_command';
// ensure that the model definition is loaded before the patch
import '@mail/models/composer_view/composer_view';
import '@mail/models/composer_view';
patchRecordMethods('ComposerView', {
_computeComposer() {
@@ -3,7 +3,7 @@
import { addFields, patchIdentifyingFields } from '@mail/model/model_core';
import { one } from '@mail/model/model_field';
// ensure that the model definition is loaded before the patch
import '@mail/models/message_view/message_view';
import '@mail/models/message_view';
addFields('MessageView', {
qunitTest: one('QUnitTest', {
@@ -2,7 +2,7 @@
import { addFields, patchIdentifyingFields, patchRecordMethods } from '@mail/model/model_core';
import { one } from '@mail/model/model_field';
import '@mail/models/notification_list_view/notification_list_view'; // ensure the model definition is loaded before the patch
import '@mail/models/notification_list_view'; // ensure the model definition is loaded before the patch
addFields('NotificationListView', {
qunitTestOwner: one('QUnitTest', {
@@ -3,7 +3,7 @@
import { addFields, patchIdentifyingFields } from '@mail/model/model_core';
import { one } from '@mail/model/model_field';
// ensure that the model definition is loaded before the patch
import '@mail/models/thread_view/thread_viewer';
import '@mail/models/thread_viewer';
addFields('ThreadViewer', {
qunitTest: one('QUnitTest', {