Skip to content
Snippets Groups Projects
Commit e16976dd authored by Louis Wicket (wil)'s avatar Louis Wicket (wil)
Browse files

[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: default avatarAlexandre Kühn (aku) <aku@odoo.com>
parent df147ac6
No related branches found
No related tags found
No related merge requests found
Showing
with 23 additions and 23 deletions
......@@ -39,7 +39,7 @@ If you need to manage your meetings, you should install the CRM module.
'auto_install': False,
'assets': {
'web.assets_backend': [
'calendar/static/src/models/*/*.js',
'calendar/static/src/models/*.js',
'calendar/static/src/scss/calendar.scss',
'calendar/static/src/js/base_calendar.js',
'calendar/static/src/js/calendar_renderer.js',
......
......@@ -3,7 +3,7 @@
import { addFields, patchModelMethods, patchRecordMethods } from '@mail/model/model_core';
import { attr } from '@mail/model/model_field';
// ensure that the model definition is loaded before the patch
import '@mail/models/activity/activity';
import '@mail/models/activity';
addFields('Activity', {
calendar_event_id: attr({ default: false }),
......
......@@ -2,7 +2,7 @@
import { patchRecordMethods } from '@mail/model/model_core';
// ensure that the model definition is loaded before the patch
import '@mail/models/activity_view/activity_view';
import '@mail/models/activity_view';
import Dialog from 'web.Dialog';
......
......@@ -17,10 +17,10 @@
'license': 'LGPL-3',
'assets': {
'mail.assets_discuss_public': [
'crm_livechat/static/src/models/*/*.js',
'crm_livechat/static/src/models/*.js',
],
'web.assets_backend': [
'crm_livechat/static/src/models/*/*.js',
'crm_livechat/static/src/models/*.js',
],
},
}
......@@ -3,7 +3,7 @@
import { patchRecordMethods } from '@mail/model/model_core';
import { insert } from '@mail/model/model_field_command';
// ensure that the model definition is loaded before the patch
import '@mail/models/messaging_initializer/messaging_initializer';
import '@mail/models/messaging_initializer';
patchRecordMethods('MessagingInitializer', {
/**
......
......@@ -50,7 +50,7 @@
'auto_install': False,
'assets': {
'mail.assets_discuss_public': [
'hr/static/src/models/*/*.js',
'hr/static/src/models/*.js',
],
'web.assets_backend': [
'hr/static/src/scss/hr.scss',
......@@ -61,7 +61,7 @@
'hr/static/src/js/standalone_m2o_avatar_employee.js',
'hr/static/src/js/user_menu.js',
'hr/static/src/js/work_permit_upload.js',
'hr/static/src/models/*/*.js',
'hr/static/src/models/*.js',
],
'web.assets_qweb': [
'hr/static/src/xml/*.xml',
......
......@@ -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/messaging';
import '@mail/models/messaging';
patchRecordMethods('Messaging', {
/**
......
......@@ -3,7 +3,7 @@
import { addFields, addRecordMethods, patchRecordMethods } from '@mail/model/model_core';
import { attr, one } from '@mail/model/model_field';
// ensure that the model definition is loaded before the patch
import '@mail/models/partner/partner';
import '@mail/models/partner';
addRecordMethods('Partner', {
/**
......
......@@ -3,7 +3,7 @@
import { addFields } 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/user/user';
import '@mail/models/user';
addFields('User', {
/**
......
......@@ -64,11 +64,11 @@ A synchronization with an internal agenda (Meetings of the CRM module) is also p
'assets': {
'mail.assets_discuss_public': [
'hr_holidays/static/src/components/*/*',
'hr_holidays/static/src/models/*/*.js',
'hr_holidays/static/src/models/*.js',
],
'web.assets_backend': [
'hr_holidays/static/src/js/**/*.js',
'hr_holidays/static/src/models/*/*.js',
'hr_holidays/static/src/models/*.js',
'hr_holidays/static/src/components/*/*.scss',
'hr_holidays/static/src/dashboard/**/*.js',
'hr_holidays/static/src/dashboard/**/*.scss',
......
......@@ -4,7 +4,7 @@ import { addFields, addRecordMethods, patchModelMethods, patchRecordMethods } fr
import { attr } from '@mail/model/model_field';
import { clear } from '@mail/model/model_field_command';
// ensure that the model definition is loaded before the patch
import '@mail/models/partner/partner';
import '@mail/models/partner';
import { str_to_date } from 'web.time';
......
......@@ -44,13 +44,13 @@ Help your customers with this chat, and analyse their feedback.
'assets': {
'mail.assets_discuss_public': [
'im_livechat/static/src/components/*/*',
'im_livechat/static/src/models/*/*.js',
'im_livechat/static/src/models/*.js',
],
'web.assets_backend': [
'im_livechat/static/src/js/im_livechat_channel_form_view.js',
'im_livechat/static/src/js/im_livechat_channel_form_controller.js',
'im_livechat/static/src/components/*/*.js',
'im_livechat/static/src/models/*/*.js',
'im_livechat/static/src/models/*.js',
'im_livechat/static/src/scss/im_livechat_history.scss',
'im_livechat/static/src/scss/im_livechat_form.scss',
],
......
......@@ -2,7 +2,7 @@
import { patchRecordMethods } from '@mail/model/model_core';
// ensure that the model definition is loaded before the patch
import '@mail/models/chat_window/chat_window';
import '@mail/models/chat_window';
patchRecordMethods('ChatWindow', {
/**
......
......@@ -3,7 +3,7 @@
import { addFields, patchRecordMethods } 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/discuss/discuss';
import '@mail/models/discuss';
patchRecordMethods('Discuss', {
/**
......
......@@ -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/discuss_sidebar_category/discuss_sidebar_category';
import '@mail/models/discuss_sidebar_category';
addFields('DiscussSidebarCategory', {
discussAsLivechat: one('Discuss', {
......
......@@ -2,7 +2,7 @@
import { patchRecordMethods } from '@mail/model/model_core';
// ensure that the model definition is loaded before the patch
import '@mail/models/discuss_sidebar_category_item/discuss_sidebar_category_item';
import '@mail/models/discuss_sidebar_category_item';
patchRecordMethods('DiscussSidebarCategoryItem', {
/**
......
......@@ -3,7 +3,7 @@
import { patchModelMethods } from '@mail/model/model_core';
import { insertAndReplace } from '@mail/model/model_field_command';
// ensure the model definition is loaded before the patch
import '@mail/models/message/message';
import '@mail/models/message';
patchModelMethods('Message', {
/**
......
......@@ -3,7 +3,7 @@
import { addFields } from '@mail/model/model_core';
import { many } from '@mail/model/model_field';
// ensure that the model definition is loaded before the patch
import '@mail/models/messaging/messaging';
import '@mail/models/messaging';
addFields('Messaging', {
/**
......
......@@ -3,7 +3,7 @@
import { patchRecordMethods } from '@mail/model/model_core';
import { insert, insertAndReplace } from '@mail/model/model_field_command';
// ensure that the model definition is loaded before the patch
import '@mail/models/messaging_initializer/messaging_initializer';
import '@mail/models/messaging_initializer';
patchRecordMethods('MessagingInitializer', {
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment