6 <!-- Calendar Events Types Form View -->
8 <record id="view_calendar_event_type_tree" model="ir.ui.view">
9 <field name="name">Meeting Types Tree</field>
10 <field name="model">calendar.event.type</field>
11 <field name="arch" type="xml">
12 <tree string="Meeting Types">
18 <record id="action_calendar_event_type" model="ir.actions.act_window">
19 <field name="name">Meeting Types</field>
20 <field name="res_model">calendar.event.type</field>
21 <field name="view_type">form</field>
22 <field name="view_id" ref="view_calendar_event_type_tree"/>
25 <!-- Calendar Events Form View -->
27 <record model="ir.ui.view" id="view_calendar_event_form">
28 <field name="name">Calendar - Event Form</field>
29 <field name="model">calendar.event</field>
30 <field name="priority" eval="1"/>
31 <field name="arch" type="xml">
32 <form string="Meetings" version="7.0">
34 <field name="state" invisible="1"/>
35 <field name="is_attendee" invisible="1"/>
36 <field name="attendee_status" invisible="1"/>
37 <div class="oe_title">
38 <div class="oe_edit_only">
44 <label for="partner_ids" class="oe_edit_only"/>
46 <field name="partner_ids" widget="many2manyattendee"
47 context="{'force_email':True}"
48 on_change="onchange_partner_ids(partner_ids)"
53 <page string="Meeting Details">
54 <group attrs="{'invisible': [('recurrency','==',False)]}" class="oe_edit_only ">
55 <p class='alert alert-warning'> This event is linked to a recurrence...<br/>
56 <button type="object" name="open_after_detach_event" string="Update only this instance" help="Click here to update only this instance and not all recurrences. " class="oe_link"/>
61 <field name="date" string="Starting at" on_change="onchange_dates(date, duration, False, allday)"/>
62 <label for="duration"/>
64 <field name="duration" widget="float_time"
65 on_change="onchange_dates(date, duration, False, allday)"
66 class="oe_inline" attrs="{'invisible': [('allday','=',True)]}"/>
67 <label string="hours" attrs="{'invisible': [('allday','=',True)]}"/>
68 (<field name="allday" class="oe_inline"/>
69 <label for="allday" string="All Day?"/>)
71 <field name="date_deadline" groups="base.group_no_one"
72 attrs="{'invisible': ['|', ('allday','=',True), ('duration','<', 24)]}"
76 <field name="categ_ids" widget="many2many_tags"/>
77 <field name="alarm_ids" widget="many2many_tags" />
78 <field name="location"/>
82 <label for="description"/>
83 <field name="description"/>
85 <page string="Options">
89 <field name="recurrency"/>
91 <group attrs="{'invisible': [('recurrency','=',False)]}">
92 <label for="interval"/>
94 <field name="interval" attrs="{'required': [('recurrency','==',True)]}" class="oe_inline"/>
95 <field name="rrule_type" attrs="{'required': [('recurrency','==',True)]}" class="oe_inline"/>
97 <label string="Until" for="end_type"/>
99 <field name="end_type" attrs="{'required': [('recurrency','==',True)]}" class="oe_inline"/>
100 <field name="count" attrs="{'invisible': [('end_type', '!=', 'count')], 'required': [('recurrency','==',True)]}" class="oe_inline"/>
101 <field name="end_date" attrs="{'invisible': [('end_type', '!=', 'end_date')], 'required': [('end_type', '=', 'end_date')]}" class="oe_inline"/>
103 <label string="Select Weekdays" attrs="{'invisible' :[('rrule_type','not in', ['weekly'])]}"/>
104 <group col="2" colspan="1" name="weekdays" attrs="{'invisible' :[('rrule_type','not in', ['weekly'])]}" >
105 <field name="mo" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
106 <field name="tu" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
107 <field name="we" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
108 <field name="th" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
109 <field name="fr" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
110 <field name="sa" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
111 <field name="su" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
114 <label string="Day of Month"
115 attrs="{'invisible': [('rrule_type','!=','monthly')]}"/>
117 <div attrs="{'invisible': [('rrule_type','!=','monthly')]}">
118 <field name="month_by"/>
120 attrs="{'required': [('month_by','=','date'), ('rrule_type','=','monthly')],
121 'invisible': [('month_by','=','day')]}"/>
122 <field name="byday" string="The"
123 attrs="{'required': [('month_by','=','day'), ('rrule_type','=','monthly')], 'invisible': [('month_by','=','date')]}"/>
124 <field name="week_list" nolabel="1"
125 attrs="{'required': [('month_by','=','day'), ('rrule_type','=','monthly')], 'invisible': [('month_by','=','date')]}"/>
130 <field name="class"/>
131 <field name="show_as"/>
132 <field name="rrule" invisible="1" readonly="0" />
133 <field name="recurrent_id" invisible="1" />
138 <page string="Invitations" groups="base.group_no_one">
139 <button name="do_sendmail" type="object" string="Send mail" icon="terp-mail-message-new" class="oe_link"/>
140 <field name="attendee_ids" widget="one2many" >
141 <tree string="Invitation details" editable="top" create="false" delete="false">
142 <field name="partner_id" />
143 <field name="state" />
144 <field name="email" widget="email"/>
146 <button name="do_tentative" states="needsAction,declined,accepted" string="Uncertain" type="object" icon="terp-crm" />
147 <button name="do_accept" string="Accept" states="needsAction,tentative,declined" type="object" icon="gtk-apply"/>
148 <button name="do_decline" string="Decline" states="needsAction,tentative,accepted" type="object" icon="gtk-cancel"/>
152 <page string="Misc" groups="base.group_no_one">
153 <label string="Owner"/>
154 <field name="user_id" />
160 <div class="oe_chatter">
161 <field name="message_follower_ids" widget="mail_followers"/>
162 <field name="message_ids" widget="mail_thread" />
168 <record model="ir.ui.view" id="view_calendar_event_form_popup">
169 <field name="name">Meetings Popup</field>
170 <field name="model">calendar.event</field>
171 <field name="priority" eval="2"/>
172 <field name="arch" type="xml">
173 <form string="Meetings" version="7.0">
174 <field name="state" invisible="1"/>
175 <field name="is_attendee" invisible="1"/>
176 <field name="attendee_status" invisible="1"/>
181 <field name="date" string="Start" />
182 <field name="duration" string="Duration" widget="float_time" attrs="{'invisible': [('allday','=',True)]}"/>
183 <field name="allday" class="oe_inline" attrs="{'invisible': [('allday','=',False)]}"/>
184 <field name="partner_ids" widget="many2manyattendee" string="Attendees"/>
187 <field name="categ_ids" widget="many2many_tags"/>
188 <field name="alarm_ids" widget="many2many_tags" />
189 <field name="location"/>
196 <!-- CRM Meeting Tree View -->
198 <record model="ir.ui.view" id="view_calendar_event_tree">
199 <field name="name">CRM - Meetings Tree</field>
200 <field name="model">calendar.event</field>
201 <field name="arch" type="xml">
202 <tree string="Meetings" fonts="bold:message_unread==True">
203 <field name="name" string="Subject"/>
204 <field name="date" string="Event Date"/>
205 <field name="user_id"/>
206 <field name="location"/>
207 <field name="show_as"/>
208 <field name="class" string="Privacy"/>
209 <field name="state" invisible="True"/>
210 <field name="duration"/>
211 <field name="message_unread" invisible="1"/>
216 <!-- CRM Meeting Calendar -->
217 <record model="ir.ui.view" id="view_calendar_event_calendar">
218 <field name="name">Meetings Calendar</field>
219 <field name="model">calendar.event</field>
220 <field name="priority" eval="2"/>
221 <field name="arch" type="xml">
222 <calendar string="Meetings" date_start="date" date_stop="date_deadline" date_delay="duration" all_day="allday"
223 display="[name]" color="color_partner_id" attendee="partner_ids" avatar_model="res.partner"
224 use_contacts="True" event_open_popup="%(calendar.view_calendar_event_form_popup)s">
227 <field name="user_id"/>
228 <field name="color_partner_id"/>
229 <field name="partner_ids"/>
234 <!-- CRM Meeting Gantt -->
236 <record id="view_calendar_event_gantt" model="ir.ui.view">
237 <field name="name">CRM - Meetings Gantt</field>
238 <field name="model">calendar.event</field>
239 <field name="arch" type="xml">
240 <gantt date_delay="duration" date_start="date" string="Meetings"/>
244 <!-- CRM Meeting Search View -->
245 <record id="view_calendar_event_search" model="ir.ui.view">
246 <field name="name">CRM - Meetings Search</field>
247 <field name="model">calendar.event</field>
248 <field name="arch" type="xml">
249 <search string="Search Meetings">
250 <field name="name" string="Meeting" filter_domain="[('name','ilike',self)]"/>
251 <field name="partner_ids"/>
252 <field name="categ_ids"/>
253 <field name="user_id"/>
254 <field name="show_as"/>
255 <field name="class" string="Privacy"/>
256 <filter icon="terp-go-today" string="My Events" domain="[('user_id','=',uid)]" help="My Events"/>
257 <filter string="My Meetings" help="My Meetings" name="mymeetings" context='{"mymeetings": 1}'/>
258 <filter string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
260 <group expand="0" string="Group By...">
261 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
262 <filter string="Availability" icon="terp-camera_test" domain="[]" context="{'group_by':'show_as'}"/>
263 <filter string="Privacy" icon="terp-locked" domain="[]" context="{'group_by':'class'}"/>
264 <filter string="Event Month" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" help="Start Date of Event by Month"/>
270 <record id="action_calendar_event" model="ir.actions.act_window">
271 <field name="name">Meetings</field>
272 <field name="res_model">calendar.event</field>
273 <field name="view_mode">calendar,tree,form,gantt</field>
274 <field name="view_id" ref="view_calendar_event_calendar"/>
275 <field name="search_view_id" ref="view_calendar_event_search"/>
276 <field name="help" type="html">
277 <p class="oe_view_nocontent_create">
278 Click to schedule a new meeting.
280 The calendar is shared between employees and fully integrated with
281 other applications such as the employee holidays or the business
286 <record model="ir.actions.act_window.view" id="action_view_calendar_event_calendar">
287 <field name="act_window_id" ref="action_calendar_event"/>
288 <field name="sequence" eval="1"/>
289 <field name="view_mode">calendar</field>
290 <field name="view_id" ref="view_calendar_event_calendar"/>
292 <record model="ir.actions.act_window.view" id="action_view_calendar_event_tree">
293 <field name="act_window_id" ref="action_calendar_event"/>
294 <field name="sequence" eval="2"/>
295 <field name="view_mode">tree</field>
296 <field name="view_id" ref="view_calendar_event_tree"/>
298 <record model="ir.actions.act_window.view" id="action_view_calendar_event_form">
299 <field name="act_window_id" ref="action_calendar_event"/>
300 <field name="sequence" eval="3"/>
301 <field name="view_mode">form</field>
302 <field name="view_id" ref="view_calendar_event_form"/>
304 <record model="ir.actions.act_window.view" id="action_view_calendar_event_gantt">
305 <field name="act_window_id" ref="action_calendar_event"/>
306 <field name="sequence" eval="4"/>
307 <field name="view_mode">gantt</field>
308 <field name="view_id" ref="view_calendar_event_gantt"/>
311 <menuitem name="Calendar" id="mail_menu_calendar" parent="mail.mail_my_stuff" sequence="10" action="action_calendar_event"/>
312 <menuitem id="menu_calendar_configuration" name="Calendar" parent="base.menu_custom" groups="base.group_no_one"/>
313 <menuitem id="menu_calendar_event_type" parent="menu_calendar_configuration" action="action_calendar_event_type" groups="base.group_no_one"/>
315 <!-- called in js from '/js/base_calendar.js' -->
316 <record id="action_calendar_event_notify" model="ir.actions.act_window">
317 <field name="name">Meetings</field>
318 <field name="res_model">calendar.event</field>
319 <field name="view_mode">form,calendar,tree,gantt</field>
320 <field name="view_id" ref="view_calendar_event_form"/>