[IMP] contract: Add discount + price_subtotal fields to the contract lines in the portal view.

TT34117
This commit is contained in:
Víctor Martínez
2022-01-25 14:28:47 +01:00
parent c06ca5bd7a
commit 476c99a0e1

View File

@@ -212,6 +212,14 @@
name="th_price_unit"
class="text-right"
>Price unit</th>
<th
name="th_discount"
class="text-right"
>Discount (%)</th>
<th
name="th_price_subtotal"
class="text-right"
>Sub Total</th>
<th
name="th_recurring_interval"
class="text-right"
@@ -249,6 +257,21 @@
t-options='{"widget": "monetary", "display_currency": contract.currency_id}'
/>
</td>
<td
name="td_discount"
class="text-right"
>
<span t-field="line.discount" />
</td>
<td
name="td_price_subtotal"
class="text-right"
>
<span
t-field="line.price_subtotal"
t-options='{"widget": "monetary", "display_currency": contract.currency_id}'
/>
</td>
<td
name="td_recurring_interval"
class="text-right"