| 1 |
<templates> |
| 2 |
<t t-name="mail.RottingStatusBarDurationField" t-inherit="mail.StatusBarDurationField" t-inherit-mode="primary"> |
| 3 |
<xpath expr="//*[hasclass('btn btn-secondary o_arrow_button')]" position="attributes"> |
| 4 |
<attribute name="class" add="d-flex align-items-baseline" separator=" "/> |
| 5 |
</xpath> |
| 6 |
<xpath expr="//span[@t-att-title='item.fullTimeInStage']" position="attributes"> |
| 7 |
<attribute name="t-if" add="(!props.record.data.is_rotting || !item.isSelected)" separator=" and "/> |
| 8 |
</xpath> |
| 9 |
|
| 10 |
<xpath expr="//span[@t-att-title='item.fullTimeInStage']" position="after"> |
| 11 |
<t t-if="props.record.data.is_rotting and item.isSelected"> |
| 12 |
<span class="badge rounded-pill small o_mail_resource_rotting_bg ms-2" |
| 13 |
t-att-title="title" style="pointer-events: all;"> |
| 14 |
<t t-out="props.record.data.rotting_days"/>d |
| 15 |
</span> |
| 16 |
</t> |
| 17 |
</xpath> |
| 18 |
</t> |
| 19 |
</templates> |