flectra/addons/event/views/res_partner_views.xml

23 lines
971 B
XML
Raw Normal View History

<?xml version="1.0"?>
2018-01-16 11:34:37 +01:00
<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"/>
2018-07-13 11:21:38 +02:00
<field name="groups_id" eval="[(4, ref('event.group_event_user'))]"/>
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button class="oe_stat_button"
type="object"
icon="fa-ticket"
2018-07-13 11:21:38 +02:00
groups="event.group_event_user"
name="action_event_view" attrs="{'invisible': [('event_count','=', 0)]}">
<field string="Events" name="event_count" widget="statinfo"/>
</button>
</div>
</field>
</record>
</data>
2018-01-16 11:34:37 +01:00
</flectra>