[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:
@@ -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',
|
||||
|
||||
+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/messaging';
|
||||
import '@mail/models/messaging';
|
||||
|
||||
patchRecordMethods('Messaging', {
|
||||
/**
|
||||
+1
-1
@@ -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', {
|
||||
/**
|
||||
Reference in New Issue
Block a user