| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<templates xml:space="preserve"> |
| 3 |
|
| 4 |
<t t-name="product_expiry.ForecastedDetails" t-inherit="stock.ForecastedDetails" t-inherit-mode="extension"> |
| 5 |
<xpath expr="//t[@name='freeStock_cell']" position="before"> |
| 6 |
<t name="expiredStock_cell" t-elif="line?.removal_date === -1"> |
| 7 |
<span class='text-warning'>Expired Stock</span> |
| 8 |
</t> |
| 9 |
</xpath> |
| 10 |
<xpath expr="//td[@name='quantity_cell']" position="attributes"> |
| 11 |
<attribute name="t-attf-class">#{line?.removal_date == -1 and 'text-warning'}</attribute> |
| 12 |
</xpath> |
| 13 |
<xpath expr="//td[@name='usedby_cell']" position="inside"> |
| 14 |
<t t-if="line.removal_date"> |
| 15 |
<t t-if="line.removal_date === -1"> |
| 16 |
<span class="text-warning">To remove now</span> |
| 17 |
</t> |
| 18 |
<t t-else=""> |
| 19 |
<span class="text-muted">To remove on <t t-out="line.removal_date"/></span> |
| 20 |
</t> |
| 21 |
</t> |
| 22 |
</xpath> |
| 23 |
</t> |
| 24 |
|
| 25 |
</templates> |