summaryrefslogtreecommitdiff
path: root/addons/account/views/partner_view.xml
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-07-07 14:18:07 +0200
committerChristophe Simonis <chs@odoo.com>2017-07-07 14:18:07 +0200
commit0f2b2c4e2b99df8d68456016a4bea86e26c1c80e (patch)
tree37ecc505ddb81ec1cd048dba9655e03e3176c546 /addons/account/views/partner_view.xml
parent5241d479b222bc11ebd1c0ff41c38872a3fea8fd (diff)
parent514a1a76d81de3943f752ceaa5e487a2d25b9bb7 (diff)
[MERGE] forward port branch saas-15 up to 514a1a76d81
Diffstat (limited to 'addons/account/views/partner_view.xml')
-rw-r--r--addons/account/views/partner_view.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml
index 84607ad971d..2f028d6f1c2 100644
--- a/addons/account/views/partner_view.xml
+++ b/addons/account/views/partner_view.xml
@@ -95,6 +95,17 @@
<field name="priority" eval="20"/>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
<field name="arch" type="xml">
+ <div name="button_box" position="inside">
+ <button type="object" class="oe_stat_button" icon="fa-pencil-square-o" name="action_view_partner_invoices"
+ attrs="{'invisible': [('customer', '=', False)]}">
+ <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>
+ </div>
<group name="container_row_2" position="inside">
<group string="Payments" name="banks">
<field name="currency_id" invisible="1"/>