mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract: Add discount + price_subtotal fields to the contract lines in the portal view.
TT34117
This commit is contained in:
committed by
Christopher Rogos
parent
850238eb84
commit
e61cb592d9
@@ -11,7 +11,7 @@
|
||||
|
||||
{
|
||||
"name": "Recurring - Contracts Management",
|
||||
"version": "15.0.1.0.2",
|
||||
"version": "15.0.1.1.0",
|
||||
"category": "Contract Management",
|
||||
"license": "AGPL-3",
|
||||
"author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)",
|
||||
|
||||
@@ -916,6 +916,7 @@ msgstr ""
|
||||
#: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__discount
|
||||
#: model:ir.model.fields,field_description:contract.field_contract_line__discount
|
||||
#: model:ir.model.fields,field_description:contract.field_contract_template_line__discount
|
||||
#: model_terms:ir.ui.view,arch_db:contract.portal_contract_page
|
||||
msgid "Discount (%)"
|
||||
msgstr ""
|
||||
|
||||
@@ -1839,6 +1840,7 @@ msgstr ""
|
||||
#: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__price_subtotal
|
||||
#: model:ir.model.fields,field_description:contract.field_contract_line__price_subtotal
|
||||
#: model:ir.model.fields,field_description:contract.field_contract_template_line__price_subtotal
|
||||
#: model_terms:ir.ui.view,arch_db:contract.portal_contract_page
|
||||
msgid "Sub Total"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user