[IMP] mail, *: rename partner model

Rename javascript model `mail.partner` to `Partner` in order to
distinguish javascript models from python models.

Part of task-2701674.
 * = hr, hr_holidays, im_livechat, website_livechat

closes odoo/odoo#81406

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2021-12-15 11:12:47 +00:00
committed by Alexandre Kühn
parent b024377742
commit db0afd3760
38 changed files with 124 additions and 124 deletions
@@ -161,7 +161,7 @@ registerModel({
/**
* Partner related to this employee.
*/
partner: one2one('mail.partner', {
partner: one2one('Partner', {
inverse: 'employee',
related: 'user.partner',
}),
@@ -5,7 +5,7 @@ import { attr, one2one } from '@mail/model/model_field';
// ensure that the model definition is loaded before the patch
import '@mail/models/partner/partner';
addRecordMethods('mail.partner', {
addRecordMethods('Partner', {
/**
* Checks whether this partner has a related employee and links them if
* applicable.
@@ -20,7 +20,7 @@ addRecordMethods('mail.partner', {
},
});
patchRecordMethods('mail.partner', {
patchRecordMethods('Partner', {
/**
* When a partner is an employee, its employee profile contains more useful
* information to know who he is than its partner profile.
@@ -40,7 +40,7 @@ patchRecordMethods('mail.partner', {
},
});
addFields('mail.partner', {
addFields('Partner', {
/**
* Employee related to this partner. It is computed through
* the inverse relation and should be considered read-only.