1 <?xml version="1.0" encoding="utf-8"?>
4 <!-- Attendee form view-->
6 <record id="base_calendar_attendee_form_view" model="ir.ui.view">
7 <field name="name">calendar.attendee.form</field>
8 <field name="model">calendar.attendee</field>
9 <field name="type">form</field>
10 <field name="arch" type="xml">
11 <form string="Invitation details">
12 <group col="6" colspan="4">
13 <field name="email" string="Invitation To"/>
14 <field name="cutype" string="Invitation type" />
16 <field name="role" string="Role" />
17 <field name="sent_by_uid" string="Invitation From" />
19 <notebook colspan="4">
20 <page string="Invitation">
21 <separator string="Invitation Detail" colspan="4" />
22 <group colspan="4" col="4">
23 <field name="user_id" string="Invited User"/>
25 <field name="partner_address_id"
27 <field name="partner_id"
28 string="Partner" readonly="1" />
30 <separator string="Event Detail" colspan="4" />
31 <group colspan="4" col="4">
32 <field name="event_date" />
33 <field name="event_end_date" />
34 <field name="language"/>
35 <field name="ref" colspan="4" readonly="1"/>
38 <page string="Delegation Info">
39 <separator string="Delegated From" colspan="4" />
40 <field name="parent_ids" nolabel="1"
41 colspan="4" readonly="1" />
42 <separator string="Delegated To" colspan="4" />
43 <field name="child_ids" nolabel="1"
44 colspan="4" readonly="1" />
47 <group col="6" colspan="4">
48 <field name="state" />
49 <button name="do_tentative"
50 states="needs-action,declined,accepted"
51 string="Uncertain" type="object"
53 <button name="do_accept" string="Accept"
54 states="needs-action,tentative,declined"
55 type="object" icon="gtk-apply" />
56 <button name="do_decline" string="Decline"
57 states="needs-action,tentative,accepted"
58 type="object" icon="gtk-cancel" />
60 name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
61 string="Delegate" type="action"
62 icon="gtk-sort-descending"
63 states="needs-action,tentative,declined,accepted"
64 context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
70 <!-- Attendee tree view-->
72 <record id="base_calendar_attendee_tree_view" model="ir.ui.view">
73 <field name="name">calendar.attendee.tree</field>
74 <field name="model">calendar.attendee</field>
75 <field name="type">tree</field>
76 <field name="arch" type="xml">
77 <tree string="Invitation details">
78 <field name="sent_by_uid" string="Invitation From" />
79 <field name="role" string="My Role"/>
80 <field name="user_id" invisible="1"/>
81 <field name="cutype" string="Invitation type"/>
82 <field name="state" />
83 <field name="rsvp" string="Required to Join"/>
84 <button name="do_tentative" states="needs-action,declined,accepted"
85 string="Uncertain" type="object"
87 <button name="do_accept" string="Accept"
88 states="needs-action,tentative,declined"
89 type="object" icon="gtk-apply" />
90 <button name="do_decline" string="Decline"
91 states="needs-action,tentative,accepted"
92 type="object" icon="gtk-cancel" />
94 name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
95 string="Delegate" type="action"
96 icon="gtk-sort-descending"
97 states="needs-action,tentative,declined,accepted"
98 context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
103 <!-- Attendee search view-->
105 <record id="base_calendar_attendee_search_view" model="ir.ui.view">
106 <field name="name">calendar.attendee.search</field>
107 <field name="model">calendar.attendee</field>
108 <field name="type">search</field>
109 <field name="arch" type="xml">
110 <search string="Search Invitations">
111 <filter icon="terp-gtk-jump-to-ltr" name="toreview" string="To Review"
112 domain="[('state','=', 'needs-action')]"
113 separator="1" help="Invitations To Review" />
114 <filter icon="terp-check" string="Accepted"
115 domain="[('state','=', 'accepted')]"
116 separator="1" help="Accepted Invitations" />
117 <filter icon="terp-dialog-close" string="Declined"
118 domain="[('state','=', 'declined')]"
119 separator="1" help="Declined Invitations" />
120 <filter icon="gtk-sort-descending" string="Delegated"
121 domain="[('state','=', 'delegated')]"
122 separator="1" help="Delegated Invitations" />
123 <separator orientation="vertical"/>
124 <field name="email" select='1'/>
125 <field name="user_id" select="1" string="Responsible"/>
126 <separator orientation="vertical"/>
127 <field name="cutype" string="Invitation type" select="1"/>
128 <field name="event_date" select="1"/>
130 <group expand="0" string="Group By...">
131 <filter string="Responsible" icon="terp-personal" domain="[]"
132 context="{'group_by':'user_id'}" />
133 <filter string="Contact" icon="terp-personal" domain="[]"
134 context="{'group_by':'partner_address_id'}" />
135 <separator orientation="vertical" />
136 <filter string="Type" icon="terp-stock_symbol-selection" help="Invitation Type"
137 domain="[]" context="{'group_by':'cutype'}" />
138 <filter string="Role" icon="terp-gtk-select-all"
139 domain="[]" context="{'group_by':'role'}" />
140 <filter string="Required Reply" icon="terp-mail-replied"
141 domain="[]" context="{'group_by':'rsvp'}" />
142 <separator orientation="vertical" />
143 <filter string="State" icon="terp-stock_effects-object-colorize" help="Invitation Type"
144 domain="[]" context="{'group_by':'state'}" />
149 <record id="action_view_attendee_form" model="ir.actions.act_window">
150 <field name="name">Event Invitations</field>
151 <field name="type">ir.actions.act_window</field>
152 <field name="res_model">calendar.attendee</field>
153 <field name="view_type">form</field>
154 <field name="view_mode">tree,form</field>
155 <field name="view_id" ref="base_calendar.base_calendar_attendee_tree_view" />
156 <field name="context">{'default_sent_by_uid': uid}</field>
159 <!-- Calenadar's menu -->
160 <menuitem id="base.menu_calendar_configuration" name="Calendar"
161 parent="base.menu_base_config" sequence="6" groups="base.group_sale_manager" />
163 <!-- Invitation menu -->
165 <menuitem id="menu_attendee_invitations"
166 parent="base.menu_calendar_configuration"
167 groups="base.group_extended"
168 sequence="10" action="action_view_attendee_form" />
170 <!-- ALARM FORM VIEW-->
172 <record id="res_alarm_form_view" model="ir.ui.view">
173 <field name="name">res.alarm.form</field>
174 <field name="model">res.alarm</field>
175 <field name="type">form</field>
176 <field name="arch" type="xml">
177 <form string="Reminder details">
178 <field name="name" />
179 <field name="active" />
180 <separator string="Reminder Details" colspan="4" />
181 <field name="trigger_duration" select="1" />
182 <field name="trigger_interval" select="1" />
183 <field name="trigger_occurs" select="1" />
184 <field name="trigger_related" select="1" />
189 <!-- ALARM TREE VIEW-->
191 <record id="res_alarm_tree_view" model="ir.ui.view">
192 <field name="name">res.alarm.tree</field>
193 <field name="model">res.alarm</field>
194 <field name="type">tree</field>
195 <field name="arch" type="xml">
196 <tree string="Reminder details">
197 <field name="name" select="1"/>
198 <field name="trigger_interval" select="1"/>
199 <field name="trigger_duration" select="1"/>
200 <field name="trigger_occurs" select="1"/>
201 <field name="trigger_related" select="1"/>
205 <record id="action_res_alarm_view" model="ir.actions.act_window">
206 <field name="name">Alarms</field>
207 <field name="type">ir.actions.act_window</field>
208 <field name="res_model">res.alarm</field>
209 <field name="view_type">form</field>
210 <field name="view_mode">tree,form</field>
211 <field name="help">Create specific calendar alarms that may be assigned to calendar events or meetings.</field>
214 <!-- Menu for Alarms-->
216 <menuitem id="menu_crm_meeting_avail_alarm"
217 groups="base.group_extended"
218 action="base_calendar.action_res_alarm_view"
219 parent="base.menu_calendar_configuration" />
221 <!-- Event Form View-->
223 <record model="ir.ui.view" id="event_form_view">
224 <field name="name">Event Form</field>
225 <field name="model">calendar.event</field>
226 <field name="type">form</field>
227 <field name="arch" type="xml">
228 <form string="Events">
229 <group col="6" colspan="4">
230 <field name="name" select="1" string="Summary"
231 colspan="4" required="1" />
232 <field name="allday" colspan="2" on_change="onchange_dates(date,False,False,allday)" />
234 <field name="date" string="Start Date" required="1" select="1"
235 on_change="onchange_dates(date,duration,False,allday)" />
236 <field name="duration" widget="float_time"
237 on_change="onchange_dates(date,duration,False,allday)" attrs="{'invisible': [('allday', '=', True)]}"/>
238 <field name="date_deadline" string="End Date" required="1"
239 on_change="onchange_dates(date,False,date_deadline)" />
240 <field name="location" />
241 <field name="alarm_id" string="Reminder"
242 widget="selection" />
243 <group colspan="2" col="4" attrs="{'readonly': [('state','=','done')]}">
244 <field name="recurrency"/>
245 <field name="edit_all" attrs="{'invisible':[('recurrency','=', False)]}" />
248 <notebook colspan="4">
249 <page string="Event">
250 <group col="6" colspan="4">
251 <separator colspan="6" string="Visibility"/>
252 <field name="user_id" string="Responsible User" />
253 <field name="show_as" string="Show time as"/>
254 <field name="class" string="Privacy"/>
255 <field name="recurrent_id" invisible="1" />
256 <field name="recurrent_uid" invisible="1" />
258 <separator string="Description" colspan="4" />
259 <field name="description" nolabel="1" colspan="4" />
260 <separator colspan="4" string="" />
261 <group col="5" colspan="4">
262 <field name="state" select="2" />
263 <button name="do_cancel"
265 states="tentative,confirmed"
268 <button name="do_tentative"
269 states="confirmed,cancelled"
273 <button name="do_confirm"
275 states="tentative,cancelled"
280 <page string="Invitation Detail">
281 <button string="Invite People"
282 name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
283 icon="terp-partner" type="action"
284 context="{'model' : 'calendar.event', 'attendee_field':'attendee_ids'}" colspan="2"/>
285 <field name="attendee_ids" colspan="4"
286 nolabel="1" widget="one2many" mode="tree,form">
287 <tree string="Invitation details" editable="top">
288 <field name="sent_by_uid" string="From"/>
289 <field name="user_id" string="To"/>
290 <field name="email" />
291 <field name="role" width="200" select="1" />
292 <field name="state" />
293 <button name="do_tentative"
294 states="needs-action,declined,accepted"
295 string="Uncertain" type="object"
297 <button name="do_accept" string="Accept"
298 states="needs-action,tentative,declined"
299 type="object" icon="gtk-apply" />
300 <button name="do_decline" string="Decline"
301 states="needs-action,tentative,accepted"
302 type="object" icon="gtk-cancel" />
304 name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
305 string="Delegate" type="action"
306 icon="gtk-sort-descending"
307 states="needs-action,tentative,declined,accepted"
308 context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
310 <form string="Invitation details">
311 <notebook colspan="4">
312 <page string="Details">
313 <field name="email" />
314 <field name="rsvp" select="1" />
315 <field name="cutype" select="1" />
316 <field name="role" select="1" />
317 <separator colspan="4" string="" />
318 <group col="6" colspan="4">
319 <field name="state" select="2" />
320 <button name="do_tentative"
321 states="needs-action,declined,accepted"
325 <button name="do_accept"
327 states="needs-action,tentative,declined"
330 <button name="do_decline"
332 states="needs-action,tentative,accepted"
336 name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
339 icon="gtk-sort-descending"
340 states="needs-action,tentative,declined,accepted"
341 context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
348 <page string="Recurrency Option" attrs="{'invisible': [('recurrency','=',False)]}">
349 <group col="4" colspan="4" name="rrule">
350 <group col="4" colspan="4">
351 <field name="rrule_type" string="Recurrency period"
352 attrs="{'readonly':[('recurrent_uid','!=',False)]}" />
353 <field name="interval" />
356 <separator string="End of recurrency" colspan="4"/>
357 <field name="end_type" />
358 <label string=" " colspan="2" />
360 <field name="count" attrs="{'invisible' : [('end_type', '!=', 'count')] }"/>
361 <label string=" " colspan="2" />
363 <field name="end_date" attrs="{'invisible' : [('end_type', '!=', 'end_date')] }"/>
368 <group col="8" colspan="4" name="Select weekdays" attrs="{'invisible' :[('rrule_type','not in', ['weekly'])]}">
369 <separator string="Choose day where repeat the meeting" colspan="8"/>
370 <field name="mo" colspan="1" />
371 <field name="tu" colspan="1" />
372 <field name="we" colspan="1" />
373 <field name="th" colspan="1" />
375 <field name="fr" colspan="1" />
376 <field name="sa" colspan="1" />
377 <field name="su" colspan="1" />
380 <group col="10" colspan="4"
381 attrs="{'invisible' : [('rrule_type','!=','monthly')]}">
382 <separator string="Choose day in the month where repeat the meeting" colspan="12"/>
383 <group col="2" colspan="1">
384 <field name="select1" />
386 <group col="2" colspan="1">
388 attrs="{'required' : [('select1','=','date'), ('rrule_type','=','monthly')],
389 'invisible' : ['|', ('select1','=','day'), ('rrule_type','!=','monthly')]}" />
391 <group col="3" colspan="1"
392 attrs="{'invisible' : ['|', ('select1','=','date'), ('rrule_type','!=','monthly')]}">
393 <field name="byday" string="The"
394 attrs="{'required' : [('select1','=','day'), ('rrule_type','=','monthly')]}" />
395 <field name="week_list" nolabel="1"
396 attrs="{'required' : [('select1','=','day'), ('rrule_type','=','monthly')]}" />
407 <!-- Event Tree View -->
409 <record model="ir.ui.view" id="event_tree_view">
410 <field name="name">Event Tree</field>
411 <field name="model">calendar.event</field>
412 <field name="type">tree</field>
413 <field name="arch" type="xml">
414 <tree string="Events">
415 <field name="name" string="Subject" />
416 <field name="date" string="Event Date" />
417 <field name="location" />
418 <field name="show_as" />
419 <field name="class" string="Privacy" />
420 <field name="user_id" invisible="1"/>
421 <field name="state" invisible="1"/>
426 <!-- Event Calendar View -->
428 <record model="ir.ui.view" id="event_calendar_view">
429 <field name="name">Events Calendar</field>
430 <field name="model">calendar.event</field>
431 <field name="type">calendar</field>
432 <field name="priority" eval="2"/>
433 <field name="arch" type="xml">
434 <calendar string="Events" date_start="date" color="show_as" date_delay="duration">
436 <field name="class"/>
437 <field name="show_as"/>
442 <!-- Event Search View-->
444 <record id="view_calendar_event_filter" model="ir.ui.view">
445 <field name="name">Calendar Events Search</field>
446 <field name="model">calendar.event</field>
447 <field name="type">search</field>
448 <field name="arch" type="xml">
449 <search string="Search Events">
450 <group col="12" colspan="4">
451 <filter icon="terp-go-today" string="My Events"
452 domain="[('user_id','=',uid)]"
454 <separator orientation="vertical"/>
455 <filter icon="terp-check" string="Confirmed"
456 domain="[('state','=','confirmed')]"
457 help="Confirmed Events" />
458 <separator orientation="vertical"/>
459 <field name="name" select="1" string="Summary"/>
460 <field name="location" select="1" string="Location"/>
461 <separator orientation="vertical"/>
462 <field name="user_id" select="1"/>
463 <separator orientation="vertical"/>
464 <field name="show_as" select="1"/>
465 <field name="class" select="1" string="Privacy"/>
468 <group expand="0" string="Group By...">
469 <filter string="Responsible" icon="terp-personal" domain="[]"
470 context="{'group_by':'user_id'}" />
471 <separator orientation="vertical" />
472 <filter string="Availability" icon="terp-camera_test"
473 domain="[]" context="{'group_by':'show_as'}" />
474 <filter string="Privacy" icon="terp-locked"
475 domain="[]" context="{'group_by':'class'}" />
476 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]"
477 context="{'group_by':'state'}" />
478 <separator orientation="vertical" />
479 <filter string="Date" icon="terp-go-month"
480 domain="[]" context="{'group_by':'date'}" />
488 <!-- Event action -->
490 <record id="action_view_event" model="ir.actions.act_window">
491 <field name="name">Events</field>
492 <field name="type">ir.actions.act_window</field>
493 <field name="res_model">calendar.event</field>
494 <field name="view_type">form</field>
495 <field name="view_mode">tree,form,calendar</field>
496 <field name="search_view_id" ref="view_calendar_event_filter"/>
501 <menuitem id="menu_events"
502 name="Events" parent="base.menu_calendar_configuration"
503 groups="base.group_extended"
504 sequence="5" action="action_view_event" />