flectra/addons/event/views/res_partner_views.xml
2018-01-16 02:34:37 -08:00

21 lines
833 B
XML

<?xml version="1.0"?>
<flectra>
<data>
<record id="res_partner_view_tree" model="ir.ui.view">
<field name="name">view.res.partner.form.event.inherited</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button class="oe_stat_button"
type="object"
icon="fa-ticket"
name="action_event_view" attrs="{'invisible': [('event_count','=', 0)]}">
<field string="Events" name="event_count" widget="statinfo"/>
</button>
</div>
</field>
</record>
</data>
</flectra>