[IMP] mail: rename activity type model
Rename javascript model 'mail.activity_type' to 'ActivityType' in order to distinguish javascript model from python model. Part of task-2701674. closes odoo/odoo#80600 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
@@ -290,7 +290,7 @@ registerModel({
|
||||
thread: many2one('mail.thread', {
|
||||
inverse: 'activities',
|
||||
}),
|
||||
type: many2one('mail.activity_type', {
|
||||
type: many2one('ActivityType', {
|
||||
inverse: 'activities',
|
||||
}),
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ import { registerModel } from '@mail/model/model_core';
|
||||
import { attr, one2many } from '@mail/model/model_field';
|
||||
|
||||
registerModel({
|
||||
name: 'mail.activity_type',
|
||||
name: 'ActivityType',
|
||||
identifyingFields: ['id'],
|
||||
fields: {
|
||||
activities: one2many('Activity', {
|
||||
|
||||
Reference in New Issue
Block a user