[IMP] contract_show_invoice: ADD total invoiced in show invoices button (#181)

This commit is contained in:
Alberto Martín Cortada
2018-10-01 10:40:37 +02:00
committed by Pedro M. Baeza
parent f944b485c7
commit 8a5de59ada
5 changed files with 37 additions and 7 deletions

View File

@@ -32,8 +32,15 @@
<field name="arch" type="xml">
<xpath expr='//div[@name="button_box"]' position='inside'>
<button class="oe_stat_button" type="action" icon="fa-edit"
name="%(contract_show_invoice.act_analytic_invoices)d"
string="Invoices" help="Invoices related with this contract">
name="%(contract_show_invoice.act_analytic_invoices)d"
help="Invoices related with this contract">
<div class="o_form_field o_stat_info">
<span class="o_stat_value">
<field name="total_invoiced" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
</span>
<span class="o_stat_text">Invoiced</span>
</div>
</button>
</xpath>
</field>