2016-11-14 15:13:16 +01:00
|
|
|
<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>
|
|
|
|
|
2017-01-16 15:11:13 +01:00
|
|
|
<!-- - 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 -->
|
2016-11-14 15:13:16 +01:00
|
|
|
<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>
|
2017-01-16 15:11:13 +01:00
|
|
|
<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>
|
2016-11-14 15:13:16 +01:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2017-01-16 15:11:13 +01:00
|
|
|
<!-- 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>
|
|
|
|
|
2017-03-08 15:29:45 +01:00
|
|
|
<!-- 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>
|
|
|
|
|
2017-01-16 15:11:13 +01:00
|
|
|
|
|
|
|
|
2016-11-14 15:13:16 +01:00
|
|
|
<!-- ACTIONS -->
|
|
|
|
|
2016-12-12 11:11:33 +01:00
|
|
|
<!-- 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)-->
|
2016-11-14 15:13:16 +01:00
|
|
|
<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>
|
2016-12-12 11:11:33 +01:00
|
|
|
|
|
|
|
|
2016-11-14 15:13:16 +01:00
|
|
|
</data>
|
|
|
|
</openerp>
|