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" editable="bottom">
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">
56 <field name="date" string="Starting at" on_change="onchange_dates(date, duration, False, allday)"/>
57 <label for="duration"/>
59 <field name="duration" widget="float_time"
60 on_change="onchange_dates(date,duration,False,allday)"
61 class="oe_inline" attrs="{'invisible': [('allday','=',True)]}"/>
62 <label string="hours" attrs="{'invisible': [('allday','=',True)]}"/>
63 (<field name="allday" on_change="onchange_dates(date,False,False,allday)" class="oe_inline"/>
64 <label for="allday" string="All Day?"/>)
66 <field name="date_deadline" groups="base.group_no_one"
67 attrs="{'invisible': ['|', ('allday','=',True), ('duration','<', 24)]}"
68 on_change="onchange_dates(date,False,date_deadline)"/>
71 <field name="categ_ids" widget="many2many_tags"/>
72 <field name="alarm_ids" widget="many2many_tags" />
73 <field name="location"/>
77 <label for="description"/>
78 <field name="description"/>
80 <page string="Options">
84 <field name="recurrency"/>
86 <group attrs="{'invisible': [('recurrency','=',False)]}">
87 <label for="interval"/>
89 <field name="interval" attrs="{'required': [('recurrency','==',True)]}" class="oe_inline"/>
90 <field name="rrule_type" attrs="{'required': [('recurrency','==',True)]}" class="oe_inline"/>
92 <label string="Until" for="end_type"/>
94 <field name="end_type" attrs="{'required': [('recurrency','==',True)]}" class="oe_inline"/>
95 <field name="count" attrs="{'invisible': [('end_type', '!=', 'count')], 'required': [('recurrency','==',True)]}" class="oe_inline"/>
96 <field name="end_date" attrs="{'invisible': [('end_type', '!=', 'end_date')], 'required': [('end_type', '=', 'end_date')]}" class="oe_inline"/>
98 <label string="Select Weekdays" attrs="{'invisible' :[('rrule_type','not in', ['weekly'])]}"/>
99 <group col="2" colspan="1" name="weekdays" attrs="{'invisible' :[('rrule_type','not in', ['weekly'])]}" >
100 <field name="mo" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
101 <field name="tu" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
102 <field name="we" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
103 <field name="th" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
104 <field name="fr" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
105 <field name="sa" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
106 <field name="su" on_change="onchange_rec_day(date,mo,tu,we,th,fr,sa,su)"/>
109 <label string="Day of Month"
110 attrs="{'invisible': [('rrule_type','!=','monthly')]}"/>
112 <div attrs="{'invisible': [('rrule_type','!=','monthly')]}">
113 <field name="month_by"/>
115 attrs="{'required': [('month_by','=','date'), ('rrule_type','=','monthly')],
116 'invisible': [('month_by','=','day')]}"/>
117 <field name="byday" string="The"
118 attrs="{'required': [('month_by','=','day'), ('rrule_type','=','monthly')], 'invisible': [('month_by','=','date')]}"/>
119 <field name="week_list" nolabel="1"
120 attrs="{'required': [('month_by','=','day'), ('rrule_type','=','monthly')], 'invisible': [('month_by','=','date')]}"/>
125 <field name="class"/>
126 <field name="show_as"/>
127 <field name="rrule" invisible="1" readonly="0" />
128 <field name="recurrent_id" invisible="1" />
133 <page string="Invitations" groups="base.group_no_one">
134 <button name="do_sendmail" type="object" string="Send mail" icon="terp-mail-message-new" class="oe_link"/>
135 <field name="attendee_ids" widget="one2many" >
136 <tree string="Invitation details" editable="top" create="false" delete="false">
137 <field name="partner_id" />
138 <field name="state" />
139 <field name="email" widget="email"/>
141 <button name="do_tentative" states="needsAction,declined,accepted" string="Uncertain" type="object" icon="terp-crm" />
142 <button name="do_accept" string="Accept" states="needsAction,tentative,declined" type="object" icon="gtk-apply"/>
143 <button name="do_decline" string="Decline" states="needsAction,tentative,accepted" type="object" icon="gtk-cancel"/>
147 <page string="Misc" groups="base.group_no_one">
148 <label string="Owner"/>
149 <field name="user_id" />
155 <div class="oe_chatter">
156 <field name="message_follower_ids" widget="mail_followers"/>
157 <field name="message_ids" widget="mail_thread" />
163 <record model="ir.ui.view" id="view_calendar_event_form_popup">
164 <field name="name">Meetings Popup</field>
165 <field name="model">calendar.event</field>
166 <field name="priority" eval="2"/>
167 <field name="arch" type="xml">
168 <form string="Meetings" version="7.0">
169 <field name="state" invisible="1"/>
170 <field name="is_attendee" invisible="1"/>
171 <field name="attendee_status" invisible="1"/>
176 <field name="date" string="Start" />
177 <field name="duration" string="Duration" widget="float_time" attrs="{'invisible': [('allday','=',True)]}"/>
178 <field name="allday" class="oe_inline" attrs="{'invisible': [('allday','=',False)]}"/>
179 <field name="partner_ids" widget="many2manyattendee" string="Attendees"/>
182 <field name="categ_ids" widget="many2many_tags"/>
183 <field name="alarm_ids" widget="many2many_tags" />
184 <field name="location"/>
191 <!-- CRM Meeting Tree View -->
193 <record model="ir.ui.view" id="view_calendar_event_tree">
194 <field name="name">CRM - Meetings Tree</field>
195 <field name="model">calendar.event</field>
196 <field name="arch" type="xml">
197 <tree string="Meetings" fonts="bold:message_unread==True">
198 <field name="name" string="Subject"/>
199 <field name="date" string="Event Date"/>
200 <field name="user_id"/>
201 <field name="location"/>
202 <field name="show_as"/>
203 <field name="class" string="Privacy"/>
204 <field name="state" invisible="True"/>
205 <field name="duration"/>
206 <field name="message_unread" invisible="1"/>
211 <!-- CRM Meeting Calendar -->
212 <record model="ir.ui.view" id="view_calendar_event_calendar">
213 <field name="name">Meetings Calendar</field>
214 <field name="model">calendar.event</field>
215 <field name="priority" eval="2"/>
216 <field name="arch" type="xml">
217 <calendar string="Meetings" date_start="date" date_stop="date_deadline" date_delay="duration" all_day="allday"
218 display="[name]" color="color_partner_id" attendee="partner_ids" avatar_model="res.partner"
219 use_contacts="True" event_open_popup="%(calendar.view_calendar_event_form_popup)s">
222 <field name="user_id"/>
223 <field name="color_partner_id"/>
224 <field name="partner_ids"/>
229 <!-- CRM Meeting Gantt -->
231 <record id="view_calendar_event_gantt" model="ir.ui.view">
232 <field name="name">CRM - Meetings Gantt</field>
233 <field name="model">calendar.event</field>
234 <field name="arch" type="xml">
235 <gantt date_delay="duration" date_start="date" string="Meetings"/>
239 <!-- CRM Meeting Search View -->
240 <record id="view_calendar_event_search" model="ir.ui.view">
241 <field name="name">CRM - Meetings Search</field>
242 <field name="model">calendar.event</field>
243 <field name="arch" type="xml">
244 <search string="Search Meetings">
245 <field name="name" string="Meeting" filter_domain="[('name','ilike',self)]"/>
246 <field name="partner_ids"/>
247 <field name="categ_ids"/>
248 <field name="user_id"/>
249 <field name="show_as"/>
250 <field name="class" string="Privacy"/>
251 <filter icon="terp-go-today" string="My Events" domain="[('user_id','=',uid)]" help="My Events"/>
252 <filter string="My Meetings" help="My Meetings" name="mymeetings" context='{"mymeetings": 1}'/>
253 <filter string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
255 <group expand="0" string="Group By...">
256 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
257 <filter string="Availability" icon="terp-camera_test" domain="[]" context="{'group_by':'show_as'}"/>
258 <filter string="Privacy" icon="terp-locked" domain="[]" context="{'group_by':'class'}"/>
259 <filter string="Event Month" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" help="Start Date of Event by Month"/>
265 <record id="action_calendar_event" model="ir.actions.act_window">
266 <field name="name">Meetings</field>
267 <field name="res_model">calendar.event</field>
268 <field name="view_mode">calendar,tree,form,gantt</field>
269 <field name="view_id" ref="view_calendar_event_calendar"/>
270 <field name="search_view_id" ref="view_calendar_event_search"/>
271 <field name="context">{"search_default_mymeetings": 1}</field>
272 <field name="help" type="html">
273 <p class="oe_view_nocontent_create">
274 Click to schedule a new meeting.
276 The calendar is shared between employees and fully integrated with
277 other applications such as the employee holidays or the business
282 <record model="ir.actions.act_window.view" id="action_view_calendar_event_calendar">
283 <field name="act_window_id" ref="action_calendar_event"/>
284 <field name="sequence" eval="1"/>
285 <field name="view_mode">calendar</field>
286 <field name="view_id" ref="view_calendar_event_calendar"/>
288 <record model="ir.actions.act_window.view" id="action_view_calendar_event_tree">
289 <field name="act_window_id" ref="action_calendar_event"/>
290 <field name="sequence" eval="2"/>
291 <field name="view_mode">tree</field>
292 <field name="view_id" ref="view_calendar_event_tree"/>
294 <record model="ir.actions.act_window.view" id="action_view_calendar_event_form">
295 <field name="act_window_id" ref="action_calendar_event"/>
296 <field name="sequence" eval="3"/>
297 <field name="view_mode">form</field>
298 <field name="view_id" ref="view_calendar_event_form"/>
300 <record model="ir.actions.act_window.view" id="action_view_calendar_event_gantt">
301 <field name="act_window_id" ref="action_calendar_event"/>
302 <field name="sequence" eval="4"/>
303 <field name="view_mode">gantt</field>
304 <field name="view_id" ref="view_calendar_event_gantt"/>
307 <menuitem name="Calendar" id="mail_menu_calendar" parent="mail.mail_my_stuff" sequence="10" action="action_calendar_event"/>
308 <menuitem id="menu_calendar_configuration" name="Calendar" parent="base.menu_custom" groups="base.group_no_one"/>
309 <menuitem id="menu_calendar_event_type" parent="menu_calendar_configuration" action="action_calendar_event_type" groups="base.group_no_one"/>
311 <!-- called in js from '/js/base_calendar.js' -->
312 <record id="action_calendar_event_notify" model="ir.actions.act_window">
313 <field name="name">Meetings</field>
314 <field name="res_model">calendar.event</field>
315 <field name="view_mode">form,calendar,tree,gantt</field>
316 <field name="view_id" ref="view_calendar_event_form"/>