[IMP] mail: introduce ComposerSuggestable model

This will allow to remove AND/OR mix in identifying fields of composer
suggestion view.

Part of task-2741982

closes odoo/odoo#94999

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Sébastien Theys
2022-07-01 16:35:59 +02:00
parent 3a5f94bff5
commit d5ed1069f0
9 changed files with 109 additions and 91 deletions
+7
View File
@@ -2257,6 +2257,13 @@ registerModel({
serverMessageUnreadCounter: attr({
default: 0,
}),
suggestable: one('ComposerSuggestable', {
default: insertAndReplace(),
inverse: 'thread',
isCausal: true,
readonly: true,
required: true,
}),
/**
* Determines the `SuggestedRecipientInfo` concerning `this`.
*/