Skip to content

Commit f059d78

Browse files
celm1990alexkuhn
authored andcommitted
[FIX] mail: Render message actions correctly with callComponent
Currently, Odoo only renders the callComponent for quick actions (2 or 3 actions). However, the remaining actions, rendered as DropdownItem, do not invoke the callComponent. This commit ensures that the rendering is consistent in both cases. Complementary to: odoo#131426 closes odoo#195185 X-original-commit: 86ec467 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
1 parent 9a2d1eb commit f059d78

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

addons/mail/static/src/core/common/message.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,11 @@
166166
<t t-set-slot="content">
167167
<t t-foreach="messageActions.actions.slice(quickActionCount - 1)" t-as="action" t-key="action.id">
168168
<DropdownItem class="'px-2 py-1 d-flex align-items-center rounded-0'" onSelected="action.onClick" attrs="{ title: action.title}">
169-
<i class="fa-fw" t-att-class="action.icon"/>
170-
<span class="mx-2" t-esc="action.title"/>
169+
<t t-if="action.callComponent" t-component="action.callComponent" t-props="action.props"/>
170+
<t t-else="">
171+
<i class="fa-fw" t-att-class="action.icon"/>
172+
<span class="mx-2" t-esc="action.title"/>
173+
</t>
171174
</DropdownItem>
172175
</t>
173176
</t>

0 commit comments

Comments
 (0)