<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!-- add visibility field to the event form view -->
        <record id="view_event_form_portal" model="ir.ui.view">
            <field name="name">portal.event.form</field>
            <field name="model">event.event</field>
            <field name="inherit_id" ref="event.view_event_form"/>
            <field name="arch" type="xml">
                <xpath expr="//page[last()]" position="after">
                    <page string="Portal Settings" groups="base.group_user">
                        <group>
                            <field name="visibility"/>
                        </group>
                    </page>
                </xpath>
            </field>
        </record>
    </data>
</openerp>
