You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2017 Carlos Dauden <carlos.dauden@tecnativa.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
<odoo>
|
|
|
|
<record id="view_partner_form" model="ir.ui.view">
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
<field name="model">res.partner</field>
|
|
<field type="xml" name="arch">
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
<button name="act_show_contract" type="object" class="oe_stat_button"
|
|
icon="fa-book" context="{'contract_type': 'sale'}"
|
|
help="Show the sale contracts for this partner">
|
|
<field name="sale_contract_count" widget="statinfo" string="Sale Contracts"/>
|
|
</button>
|
|
<button name="act_show_contract" type="object" class="oe_stat_button"
|
|
icon="fa-book" context="{'contract_type': 'purchase'}"
|
|
help="Show the purchase contracts for this partner">
|
|
<field name="purchase_contract_count" widget="statinfo" string="Purchase Contracts"/>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|