From b95c95e6d46eff5e33d17ffc965bcda2ea703b1e Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Thu, 6 Oct 2022 12:40:57 +0000 Subject: [PATCH] [IMP] mail: convert LegacyComponent CallOptionMenu part of task-2783065 closes odoo/odoo#102433 Signed-off-by: Louis Wicket (wil) --- .../src/components/call_option_menu/call_option_menu.js | 5 +++-- addons/mail/static/src/models/call_option_menu.js | 6 +----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/addons/mail/static/src/components/call_option_menu/call_option_menu.js b/addons/mail/static/src/components/call_option_menu/call_option_menu.js index d26bf14d9d0..e9da8feb0a1 100644 --- a/addons/mail/static/src/components/call_option_menu/call_option_menu.js +++ b/addons/mail/static/src/components/call_option_menu/call_option_menu.js @@ -2,9 +2,10 @@ import { useComponentToModel } from '@mail/component_hooks/use_component_to_model'; import { registerMessagingComponent } from '@mail/utils/messaging_component'; -import { LegacyComponent } from "@web/legacy/legacy_component"; -export class CallOptionMenu extends LegacyComponent { +const { Component } = owl; + +export class CallOptionMenu extends Component { /** * @override diff --git a/addons/mail/static/src/models/call_option_menu.js b/addons/mail/static/src/models/call_option_menu.js index 78684c1c82e..26d3da5c172 100644 --- a/addons/mail/static/src/models/call_option_menu.js +++ b/addons/mail/static/src/models/call_option_menu.js @@ -1,7 +1,7 @@ /** @odoo-module **/ import { registerModel } from '@mail/model/model_core'; -import { attr, one } from '@mail/model/model_field'; +import { one } from '@mail/model/model_field'; registerModel({ name: 'CallOptionMenu', @@ -27,10 +27,6 @@ registerModel({ }, }, fields: { - /** - * States the OWL component of this option list. - */ - component: attr(), callActionListView: one('CallActionListView', { related: 'popoverViewOwner.callActionListViewOwnerAsMoreMenu', }),