diff --git a/addons/mail/static/src/components/call_action_list/call_action_list.js b/addons/mail/static/src/components/call_action_list/call_action_list.js index 1b753c0f040..b7e1a11b136 100644 --- a/addons/mail/static/src/components/call_action_list/call_action_list.js +++ b/addons/mail/static/src/components/call_action_list/call_action_list.js @@ -1,13 +1,20 @@ /** @odoo-module **/ +import { useRefToModel } from '@mail/component_hooks/use_ref_to_model'; import { registerMessagingComponent } from '@mail/utils/messaging_component'; -import Popover from "web.Popover"; - const { Component } = owl; export class CallActionList extends Component { + /** + * @override + */ + setup() { + super.setup(); + useRefToModel({ fieldName: 'moreButtonRef', refName: 'moreButton' }); + } + /** * @returns {CallActionListView} */ @@ -20,7 +27,6 @@ export class CallActionList extends Component { Object.assign(CallActionList, { props: { record: Object }, template: 'mail.CallActionList', - components: { Popover }, }); registerMessagingComponent(CallActionList); diff --git a/addons/mail/static/src/components/call_action_list/call_action_list.xml b/addons/mail/static/src/components/call_action_list/call_action_list.xml index bbe3db6e29b..a01eaf033b3 100644 --- a/addons/mail/static/src/components/call_action_list/call_action_list.xml +++ b/addons/mail/static/src/components/call_action_list/call_action_list.xml @@ -87,20 +87,17 @@ - - - - - diff --git a/addons/mail/static/src/components/call_option_menu/call_option_menu.xml b/addons/mail/static/src/components/call_option_menu/call_option_menu.xml index f8d21c37238..be7bbb827d7 100644 --- a/addons/mail/static/src/components/call_option_menu/call_option_menu.xml +++ b/addons/mail/static/src/components/call_option_menu/call_option_menu.xml @@ -3,7 +3,7 @@ -
+