urd_odoo_addons/groupeurd_calendar/views.xml

99 lines
4.2 KiB
XML

<openerp>
<data>
<!-- VIEWS -->
<record id="revised_event_form" model="ir.ui.view">
<field name="name">Event edition form with team management</field>
<field name="model">event.event</field>
<field name="inherit_id" ref="event.view_event_form" />
<field name="arch" type="xml">
<field name="address_id" position="after">
<field name="team_ids" widget="many2many_tags" />
</field>
<field name="organizer_id" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>
<!-- - Calendar Event edition form without name modification if linked to public event
- Ajouter l'accès à "Invitations & divers" des évènements personnels à tous les utilisateurs -->
<record id="revised_calendar_event_form" model="ir.ui.view">
<field name="name">Calendar Event edition form without name modification if linked to public event</field>
<field name="model">calendar.event</field>
<field name="inherit_id" ref="calendar.view_calendar_event_form" />
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="attrs">{"readonly":[('event_event_id','!=',False)]}</attribute>
</field>
<field name="user_id" position="attributes">
<attribute name="attrs">{"readonly":[('event_event_id','!=',False)]}</attribute>
</field>
<page string="Invitations" position="attributes">
<attribute name="groups">base.group_user</attribute>
</page>
<page string="Misc" position="attributes">
<attribute name="groups">base.group_user</attribute>
</page>
</field>
</record>
<!-- Renommer l'agenda personnel appelé "Meetings Calendar" dans l'interface -->
<record model="ir.ui.view" id="calendar.view_calendar_event_calendar">
<field name="name">Agenda personnel</field>
</record>
<!-- Descendre "évènement public" sous la case à cocher "toute la journée" dans la popup de modification d'un évènement de l'agenda personnel -->
<record id="smile_event_event_calendar.calendar_event_view_form_inherit_smile_event_event_calendar" model="ir.ui.view">
<field name="name">calendar.event.view.form.inherit.smile.event.event.calendar</field>
<field name="model">calendar.event</field>
<field name="inherit_id" ref="calendar.view_calendar_event_form"/>
<field name="priority">32</field>
<field name="arch" type="xml">
<field name="categ_ids" position="before">
<field name="event_event_id"/>
</field>
</field>
</record>
<!-- Masquer l'option "orateur" d'un contact d'une organisation -->
<record id="disable_speaker_partner_form" model="ir.ui.view">
<field name="name">disable_speaker_partner</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="event.view_event_partner_info_form" />
<field name="arch" type="xml">
<field name="speaker" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<xpath expr="//label[@for='speaker']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
<!-- ACTIONS -->
<!-- Redefinition de l'action event.action_event_view juste pour y ajouter le context "from_eventevent_interface"
(tout le reste est identique au code d'origine de event.action_event_view dans le module event.event)-->
<record model="ir.actions.act_window" id="event.action_event_view">
<field name="name">Events</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">event.event</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,calendar,tree,form</field>
<field name="context">{"search_default_upcoming":1,"from_eventevent_interface":1}</field>
<field name="search_view_id" ref="event.view_event_search"/>
<field name="help" type="html"><p class="oe_view_nocontent_create">
Click to add a new event.
</p><p>
Odoo helps you schedule and efficiently organize your events:
track registrations and participations, automate the confirmation emails,
sell tickets, etc.
</p>
</field>
</record>
</data>
</openerp>