[IMP] mail: rename mail template model

Rename javascript model `mail.mail_template` to `MailTemplate` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81372

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2021-12-15 11:12:28 +00:00
parent 35c932e406
commit 25dbc6e58b
3 changed files with 4 additions and 4 deletions
@@ -18,10 +18,10 @@ export class MailTemplate extends Component {
}
/**
* @returns {mail.mail_template}
* @returns {MailTemplate}
*/
get mailTemplate() {
return this.messaging && this.messaging.models['mail.mail_template'].get(this.props.mailTemplateLocalId);
return this.messaging && this.messaging.models['MailTemplate'].get(this.props.mailTemplateLocalId);
}
//--------------------------------------------------------------------------
@@ -261,7 +261,7 @@ registerModel({
compute: '_computeIsCurrentPartnerAssignee',
default: false,
}),
mailTemplates: many2many('mail.mail_template', {
mailTemplates: many2many('MailTemplate', {
inverse: 'activities',
}),
/**
@@ -4,7 +4,7 @@ import { registerModel } from '@mail/model/model_core';
import { attr, many2many } from '@mail/model/model_field';
registerModel({
name: 'mail.mail_template',
name: 'MailTemplate',
identifyingFields: ['id'],
recordMethods: {
/**