With a user that do not have access to the the Event module, go into Contacts > open a contact Before this commit, a ACL error was thrown. This was because of the presence of a smartbutton refering to events in the form view of the partner After this commit, the form view of the partner displays correctly OPW 1851783 closes #24931
22 lines
909 B
XML
22 lines
909 B
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<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="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"
|
|
name="action_event_view" attrs="{'invisible': [('event_count','=', 0)]}">
|
|
<field string="Events" name="event_count" widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|