Merge PR #1468 into 17.0

Signed-off-by hbrunn
pull/1509/head
OCA-git-bot 2024-11-22 15:59:06 +00:00
commit e228d345ba
1 changed files with 10 additions and 8 deletions

View File

@ -6,14 +6,16 @@
t-inherit-mode="extension"
>
<xpath expr="//button[hasclass('o-mail-Chatter-activity')]" position="after">
<button
class="btn btn-link o_ChatterTopbar_button"
type="button"
t-att-disabled="!state.thread.hasWriteAccess"
t-on-click="_onListActivity"
>
<i class="fa fa-list" /> View Activities
</button>
<t t-if="props.hasActivities">
<button
class="btn btn-link o_ChatterTopbar_button"
type="button"
t-att-disabled="!state.thread.hasWriteAccess"
t-on-click="_onListActivity"
>
<i class="fa fa-list" /> View Activities
</button>
</t>
</xpath>
</t>
</templates>