[IMP] mail: rename suggested recipient info model

Rename javascript model `mail.suggested_recipient_info` to
`SuggestedRecipientInfo` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81432

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2021-12-15 01:59:12 +00:00
parent a408eb8f7d
commit 0b43921d3b
3 changed files with 5 additions and 5 deletions
@@ -78,10 +78,10 @@ export class ComposerSuggestedRecipient extends Component {
}
/**
* @returns {mail.suggested_recipient_info}
* @returns {SuggestedRecipientInfo}
*/
get suggestedRecipientInfo() {
return this.messaging && this.messaging.models['mail.suggested_recipient_info'].get(this.props.suggestedRecipientInfoLocalId);
return this.messaging && this.messaging.models['SuggestedRecipientInfo'].get(this.props.suggestedRecipientInfoLocalId);
}
//--------------------------------------------------------------------------
@@ -4,7 +4,7 @@ import { registerModel } from '@mail/model/model_core';
import { attr, many2one } from '@mail/model/model_field';
registerModel({
name: 'mail.suggested_recipient_info',
name: 'SuggestedRecipientInfo',
identifyingFields: ['id'],
recordMethods: {
/**
@@ -2368,9 +2368,9 @@ registerModel({
default: 0,
}),
/**
* Determines the `mail.suggested_recipient_info` concerning `this`.
* Determines the `SuggestedRecipientInfo` concerning `this`.
*/
suggestedRecipientInfoList: one2many('mail.suggested_recipient_info', {
suggestedRecipientInfoList: one2many('SuggestedRecipientInfo', {
inverse: 'thread',
isCausal: true,
}),