[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:
@@ -23,7 +23,7 @@ Allow website visitors to chat with the collaborators. This module also brings a
|
||||
'assets': {
|
||||
'mail.assets_discuss_public': [
|
||||
'website_livechat/static/src/components/*/*',
|
||||
'website_livechat/static/src/models/*/*.js',
|
||||
'website_livechat/static/src/models/*.js',
|
||||
],
|
||||
'web.assets_frontend': [
|
||||
'mail/static/src/js/utils.js',
|
||||
@@ -38,14 +38,14 @@ Allow website visitors to chat with the collaborators. This module also brings a
|
||||
'web.assets_backend': [
|
||||
'website_livechat/static/src/components/*/*.js',
|
||||
'website_livechat/static/src/components/*/*.scss',
|
||||
'website_livechat/static/src/models/*/*.js',
|
||||
'website_livechat/static/src/models/*.js',
|
||||
],
|
||||
'web.assets_tests': [
|
||||
'website_livechat/static/tests/tours/**/*',
|
||||
],
|
||||
'web.qunit_suite_tests': [
|
||||
'website_livechat/static/src/components/*/tests/*.js',
|
||||
'website_livechat/static/src/models/*/tests/*.js',
|
||||
'website_livechat/static/tests/*.js',
|
||||
'website_livechat/static/tests/helpers/*.js',
|
||||
],
|
||||
'web.assets_qweb': [
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
import { patchRecordMethods } from '@mail/model/model_core';
|
||||
// ensure that the model definition is loaded before the patch
|
||||
import '@mail/models/messaging_notification_handler/messaging_notification_handler';
|
||||
import '@mail/models/messaging_notification_handler';
|
||||
|
||||
patchRecordMethods('MessagingNotificationHandler', {
|
||||
/**
|
||||
+1
-1
@@ -4,7 +4,7 @@ import { addFields, patchModelMethods } from '@mail/model/model_core';
|
||||
import { one } from '@mail/model/model_field';
|
||||
import { insert, unlink } from '@mail/model/model_field_command';
|
||||
// ensure that the model definition is loaded before the patch
|
||||
import '@mail/models/thread/thread';
|
||||
import '@mail/models/thread';
|
||||
|
||||
patchModelMethods('Thread', {
|
||||
/**
|
||||
Reference in New Issue
Block a user