Files
odoo_source/addons/mail/static/src/models/message_notification_view.js
T
Didier (did) bec6cefd0c [IMP] mail: differentiate message and notification in channel
This PR changes the way notification are displayed inside the a channel.
Currently, notification look exactly the same as a message send by the user.

task-2918956

closes odoo/odoo#98262

Related: odoo/enterprise#30732
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-08-30 23:40:24 +02:00

20 lines
538 B
JavaScript

/** @odoo-module **/
import { registerModel } from '@mail/model/model_core';
import { one } from '@mail/model/model_field';
registerModel({
name: 'NotificationMessageView',
fields: {
message: one('Message', {
related: 'messageListViewItemOwner.message',
inverse: 'notificationMessageViews',
required: true,
}),
messageListViewItemOwner: one('MessageListViewItem', {
identifying: true,
inverse: 'notificationMessageView',
}),
},
});