<field name="view_id" ref="crm.crm_case_categ_tree-view"/>
<field name="domain">[('object_id.model', '=', 'crm.meeting')]</field>
<field name="context">{'object_id':'crm.meeting'}</field>
+ <field name="help">Create different meeting categories to better organize and classify your meetings.</field>
</record>
- <menuitem action="crm_meeting_categ_action" name="Categories of Meeting"
+ <menuitem action="crm_meeting_categ_action"
+ groups="base.group_extended"
id="menu_crm_case_meeting-act" parent="base.menu_calendar_configuration" sequence="1"/>
<!-- CRM Meetings Form View -->
<form string="Meetings">
<group col="6" colspan="4">
<field name="name" select="1" string="Summary"
- required="1" colspan="2" />
+ required="1" />
<field name="categ_id" widget="selection"
- string="Meeting Type"
- groups="base.group_extended"
+ string="Meeting Type" groups="base.group_extended"
domain="[('object_id.model', '=', 'crm.meeting')]" />
- <field name="allday" colspan="2" on_change="onchange_allday(allday)" />
+ <field name="allday" on_change="onchange_dates(date,False,False,allday)" />
<newline/>
<field name="date" string="Start Date" required="1"
on_change="onchange_dates(date,duration,False,allday)" />
<field name="duration" widget="float_time"
on_change="onchange_dates(date,duration,False,allday)" />
- <field name="date_deadline" string="End Date"
- required="1"
+ <field name="date_deadline" string="End Date" required="1"
on_change="onchange_dates(date,False,date_deadline)" />
<field name="location" />
<field name="alarm_id" string="Reminder"
widget="selection" />
- <group colspan="2" col="4" >
- <field name="rrule_type" string="Recurrency"
- colspan="1" attrs="{'readonly':[('recurrent_uid','!=',False)]}"/>
- <button string="Edit All"
- help="Edit all Ourrences of recurrent Meeting"
- attrs="{'invisible':[('rrule_type','in', ('none', False))]}"
- name="open_meeting" icon="gtk-edit"
- type="object" />
- <button string="Exclude range" groups="base.group_extended"
- help="Add Exception Rule"
- name="%(base_calendar.action_base_calendar_set_exrule)d" icon="gtk-zoom-out" type="action"
- context="{'model' : 'crm.meeting'}"
- attrs="{'invisible':[('rrule_type','in', ('none', False))]}"/>
- </group>
- </group>
- <group col="4" colspan="4" name="rrule" attrs="{'invisible': [('rrule_type','!=','custom')]}">
- <separator string="Custom Recurrency Rule" colspan="8"/>
- <group col="8" colspan="4">
- <field name="interval" />
- <field name="freq" />
- <field name="count" />
- <field name="end_date" />
- </group>
- <group col="14" colspan="4" name="Select weekdays"
- attrs="{'invisible' : [('freq','!=','weekly')]}">
- <field name="mo" colspan="1" />
- <field name="tu" colspan="1" />
- <field name="we" colspan="1" />
- <field name="th" colspan="1" />
- <field name="fr" colspan="1" />
- <field name="sa" colspan="1" />
- <field name="su" colspan="1" />
- <newline />
- </group>
- <group col="10" colspan="4"
- attrs="{'invisible' : [('freq','!=','monthly'), ('freq','!=','yearly')]}">
- <group col="2" colspan="1">
- <field name="select1" />
- </group>
- <group col="2" colspan="1"
- attrs="{'invisible' : [('select1','=','day')]}">
- <field name="day"
- attrs="{'required' : [('select1','=','date')]}" />
- </group>
- <group col="3" colspan="1"
- attrs="{'invisible' : [('select1','=','date')]}">
- <field name="byday" string="The"
- attrs="{'required' : [('select1','=','day')]}" />
- <field name="week_list" nolabel="1"
- attrs="{'required' : [('select1','=','day')]}" />
- </group>
- <group col="1" colspan="1"
- attrs="{'invisible' : [('freq','!=','yearly')]}">
- <field name="month_list" string="of"
- colspan="1"
- attrs="{'required' : [('freq','=','yearly')]}" />
- </group>
+ <group colspan="2" col="4" attrs="{'readonly': ['|', ('recurrent_uid','!=',False), ('state','=','done')]}">
+ <field name="recurrency"/>
+ <field name="edit_all" attrs="{'invisible':[('recurrency','=', False)]}"
+ on_change="onchange_edit_all(rrule_type,edit_all)"/>
</group>
</group>
<notebook colspan="4">
<separator colspan="2" string="Visibility"/>
<field name="class" string="Privacy"/>
<field name="show_as" string="Show time as" groups="base.group_extended"/>
- <field name="rrule" invisible="1" />
+ <field name="rrule" invisible="1" readonly="1"/>
<field name="recurrent_id" invisible="1"/>
<field name="recurrent_uid" invisible="1"/>
</group>
<separator string="Description" colspan="4" />
<field name="description" nolabel="1" colspan="4" />
<separator colspan="4"/>
- <group col="8" colspan="4">
+ <group col="8" colspan="4" groups="base.group_extended">
<field name="state" />
<button name="case_close" string="Done"
states="open" type="object"
icon="gtk-jump-to" />
<button name="case_reset" string="Reset to Unconfirmed"
- states="open,done,cancel" type="object"
+ states="open,done" type="object"
icon="gtk-convert" />
<button name="case_open" string="Confirm"
states="draft" type="object"
icon="gtk-go-forward" />
- <button name="case_cancel" string="Cancel"
- states="draft,open" type="object"
- icon="gtk-cancel" />
</group>
</page>
<page string="Invitation Detail">
</form>
</field>
</page>
+ <page string="Recurrency Option" attrs="{'invisible': [('recurrency','=',False)], 'readonly': ['|', ('recurrent_uid','!=',False), ('state','=','done')]}">
+ <group col="4" colspan="4" name="rrule">
+ <group col="4" colspan="4">
+ <field name="rrule_type" string="Recurrency period" />
+ <field name="interval" />
+
+
+ <separator string="End of recurrency" colspan="4"/>
+ <field name="end_type" />
+ <label string=" " colspan="2" />
+ <newline />
+ <field name="count" attrs="{'invisible' : [('end_type', '!=', 'count')] }"/>
+ <label string=" " colspan="2" />
+ <newline />
+ <field name="end_date" attrs="{'invisible' : [('end_type', '!=', 'end_date')] }"/>
+ <newline />
+
+
+ </group>
+ <group col="8" colspan="4" name="Select weekdays" attrs="{'invisible' :[('rrule_type','not in', ['weekly'])]}">
+ <separator string="Choose day where repeat the meeting" colspan="8"/>
+ <field name="mo" colspan="1" />
+ <field name="tu" colspan="1" />
+ <field name="we" colspan="1" />
+ <field name="th" colspan="1" />
+ <newline/>
+ <field name="fr" colspan="1" />
+ <field name="sa" colspan="1" />
+ <field name="su" colspan="1" />
+ <newline />
+ </group>
+ <group col="10" colspan="4"
+ attrs="{'invisible' : [('rrule_type','!=','monthly')]}">
+ <separator string="Choose day in the month where repeat the meeting" colspan="12"/>
+ <group col="2" colspan="1">
+ <field name="select1" />
+ </group>
+ <group col="2" colspan="1">
+ <field name="day"
+ attrs="{'required' : [('select1','=','date'), ('rrule_type','=','monthly')],
+ 'invisible' : [('select1','=','day')]}" />
+ </group>
+ <group col="3" colspan="1">
+ <field name="byday" string="The"
+ attrs="{'required' : [('select1','=','day'), ('rrule_type','=','monthly')], 'invisible' : [('select1','=','date')]}" />
+ <field name="week_list" nolabel="1"
+ attrs="{'required' : [('select1','=','day'), ('rrule_type','=','monthly')], 'invisible' : [('select1','=','date')]}" />
+ </group>
+ </group>
+ </group>
+
+ </page>
</notebook>
</form>
</field>
<field name="location" />
<field name="categ_id" string="Meeting Type"/>
<field name="class" string="Privacy"/>
- <field name="state"/>
+ <field name="state" groups="base.group_extended"/>
<field name="user_id" invisible="1"/>
<field name="show_as" invisible="1" string="Show time as"/>
<button name="case_reset" string="Reset to Unconfirmed"
- states="open,done,cancel" type="object"
+ states="open,done" type="object"
icon="gtk-convert" />
<button name="case_open" string="Confirm"
states="draft" type="object"
<button name="case_close" string="Done"
states="open" type="object"
icon="gtk-jump-to" />
- <button name="case_cancel" string="Cancel"
- states="draft,open" type="object"
- icon="gtk-cancel" />
</tree>
</field>
</record>
<field name="type">calendar</field>
<field name="priority" eval="2"/>
<field name="arch" type="xml">
- <calendar string="Meetings" date_start="date" color="user_id" date_delay="duration">
+ <calendar string="Meetings" date_start="date" color="user_id" date_stop="date_deadline">
<field name="name"/>
<field name="partner_id"/>
<field name="section_id" widget="selection"/>
<group col="12" colspan="4">
<filter icon="terp-check" name="current" string="Current"
domain="[('state','in',('draft', 'open'))]"
+ groups="base.group_extended"
help="Current Meetings"/>
<separator orientation="vertical"/>
<field name="name" select="1" string="Subject"/>
<field name="categ_id" select="1"
- string="Meeting Type" widget="selection"
- domain="[('object_id.model', '=', 'crm.meeting')]" />
+ string="Meeting Type" widget="selection"
+ domain="[('object_id.model', '=', 'crm.meeting')]" />
<separator orientation="vertical"/>
<field name="partner_id" select="1" />
<field name="section_id" select="1" widget="selection">
- <filter icon="terp-personal+"
- domain="['|', ('section_id.user_id','=',uid), ('section_id.member_ids', 'in', [uid])]"
+ <filter icon="terp-personal+" groups="base.group_extended"
+ domain="['|', ('section_id', '=', context.get('section_id')), '|', ('section_id.user_id','=',uid), ('section_id.member_ids', 'in', [uid])]"
help="My Sales Team(s)" />
</field>
<field name="user_id" select="1"/>
</group>
<newline/>
- <group expand="0" string="Extended Options...">
+ <group expand="0" string="Extended Filters...">
<field name="class" select="1" string="Privacy"/>
<field name="show_as" string="Show time as" select="1"/>
</group>
context="{'group_by':'partner_id'}" />
<separator orientation="vertical" />
<filter string="Type" help="Meeting Type"
- icon="terp-stock_symbol-selection" domain="[]"
- context="{'group_by':'categ_id'}" />
+ icon="terp-stock_symbol-selection" domain="[]"
+ context="{'group_by':'categ_id'}" />
<filter string="Privacy" icon="terp-locked"
domain="[]" context="{'group_by':'class'}" />
<filter string="Show time as" icon="terp-project"