<openerp>
<data>
- <menuitem name="Association" id="base.menu_association" icon="terp-calendar" sequence="9"/>
- <menuitem name="Marketing" icon="terp-crm" id="base.marketing_menu" sequence="17"/>
-
- <menuitem name="Events Organisation" id="base.menu_event_main" parent="base.marketing_menu" />
- <menuitem name="Events" id="base.menu_event_association" parent="base.menu_association" />
+ <menuitem name="Events" id="event_main_menu"/>
+ <menuitem name="Events Organisation" id="base.menu_event_main" parent="event_main_menu" />
<!-- EVENTS -->
<field name="res_model">event.type</field>
<field name="view_type">form</field>
</record>
- <menuitem name="Configuration" id="base.menu_marketing_config_root" parent="base.marketing_menu" sequence="30"/>
- <menuitem name="Configuration" id="base.menu_marketing_config_association" parent="base.menu_association" sequence="30"/>
-
+ <menuitem name="Configuration" id="base.menu_marketing_config_root" parent="event_main_menu" sequence="30"/>
<menuitem name="Types of Events" id="menu_event_type" action="action_event_type" parent="base.menu_marketing_config_root"/>
- <menuitem name="Events Type" id="menu_event_type_association" action="action_event_type" parent="base.menu_marketing_config_association"/>
<!-- Events Organisation/CONFIGURATION/EVENTS -->
<field name="name"/>
<field name="date_begin"/>
<field name="date_end"/>
- <field name="type" on_change="onchange_evnet_type(type,context)" widget="selection"/>
+ <field name="type" on_change="onchange_evnet_type(type,context)"/>
<field name="user_id"/>
<field name="address_id" />
</group>
<field name="phone"/>
<field name="nb_register" />
<field name="state"/>
- <button name="button_reg_close" string="Close Registration" states="open" type="object" icon="gtk-close"/>
- <button name="case_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
+ <button name="registration_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
+ <button name="button_reg_close" string="Attented the Event" states="open" type="object" icon="gtk-jump-to"/>
<button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
</tree>
<form string="Registration">
<separator string="" colspan="4"/>
<newline/>
<field name="state" select="1" colspan="2"/>
- <button name="button_reg_close" string="Close Registration" states="open" type="object" icon="gtk-close"/>
- <button name="case_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
+ <button name="registration_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
+ <button name="button_reg_close" string="Attended the Event" states="open" type="object" icon="gtk-jump-to"/>
<button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
</group>
</form>
- </field>
+ </field>
<field name="state" select="1" widget="statusbar" statusbar_visible="draft,confirm,done"/>
<group col="4" colspan="2">
<button string="Cancel Event" name="button_cancel" states="draft,confirm" type="object" icon="gtk-cancel"/>
<button string="Confirm Event" name="button_confirm" states="draft" type="object" icon="gtk-apply"/>
<button string="Event Done" name="button_done" states="confirm" type="object" icon="gtk-jump-to"/>
- <button string="Set To Draft" name="button_draft" states="cancel" type="object" icon="gtk-convert"/>
+ <button string="Set To Draft" name="button_draft" states="cancel,done" type="object" icon="gtk-convert"/>
</group>
</page>
<page string="Speakers" groups="base.group_extended">
<separator string="Registrations" colspan="2"/>
<field name="register_min"/>
<field name="register_max"/>
- <field name="register_current"/>
<field name="register_prospect"/>
+ <field name="register_current"/>
+ <field name="register_attended"/>
</group>
<group col="2" colspan="2">
<separator string="Emails" colspan="2"/>
<field name="date_end"/>
<field name="register_current"/>
<field name="register_min"/>
+ <field name="register_max" invisible="1"/>
<field name="main_speaker_id" groups="base.extended"/>
<field name="user_id"/>
<field name="state"/>
<button string="Confirm Event" help="Confirm Event" name="button_confirm" states="draft" type="object" icon="gtk-apply"/>
- <button string="Cancel Event" help="Cancel Event" name="button_cancel" states="draft,confirm" type="object" icon="gtk-cancel"/>
<button string="Event Done" help="Event Done" name="button_done" states="confirm" type="object" icon="gtk-jump-to"/>
- <button string="Set To Draft" help="Set To Draft" name="button_draft" states="confirm,cancel,done" type="object" icon="gtk-convert"/>
+ <button string="Cancel Event" help="Cancel Event" name="button_cancel" states="draft,confirm" type="object" icon="gtk-cancel"/>
+ <button string="Set To Draft" help="Set To Draft" name="button_draft" states="cancel,done" type="object" icon="gtk-convert"/>
</tree>
</field>
</record>
<field name="arch" type="xml">
<calendar color="type" date_start="date_begin" date_stop="date_end" string="Event Organization">
<field name="name"/>
- <field name="type" widget="selection"/>
+ <field name="type"/>
</calendar>
</field>
</record>
<field name="arch" type="xml">
<search string="Events">
<group>
- <filter icon="terp-check" string="New" name="draft" domain="[('state','=','draft')]" help="Events in New state"/>
+ <filter icon="terp-check" string="Unconfirmed" name="draft" domain="[('state','=','draft')]" help="Events in New state"/>
<filter icon="terp-camera_test" string="Confirmed" domain="[('state','=','confirm')]" help="Confirmed events"/>
<separator orientation="vertical"/>
<field name="name"/>
<filter string="Event Type" icon="terp-crm" context="{'group_by':'type'}"/>
<filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
<separator orientation="vertical"/>
- <filter string="Beginning Date" icon="terp-go-month"
+ <filter string="Starting Date" icon="terp-go-month"
domain="[]" context="{'group_by':'date_begin'}"/>
</group>
</search>
name="Registration"
res_model="event.registration"
src_model="event.event"
- view_mode="tree,form,calendar,graph"
+ view_mode="calendar,tree,form,graph"
context="{'search_default_event_id': [active_id], 'default_event_id': active_id}"
view_type="form"/>
view_type="form"/>
<menuitem name="Events" id="menu_event_event" action="action_event_view" parent="base.menu_event_main" />
- <menuitem name="Events" id="menu_event_event_assiciation" action="action_event_view" parent="base.menu_event_association" />
-
<!-- EVENTS/REGISTRATIONS/EVENTS -->
<record model="ir.ui.view" id="view_event_registration_tree">
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Registration" >
+ <field name="create_date"/>
<field name="name"/>
<field name="email"/>
<field name="event_id" />
- <field name="nb_register" groups="base.group_extended"/>
- <field name="user_id"/>
+ <field name="nb_register"/>
+ <field name="user_id" groups="base.group_extended"/>
<field name="origin" groups="base.group_extended"/>
<field name="state"/>
<button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
- <button name="case_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
- <button name="case_close" string="Close Registration" states="open" type="object" icon="gtk-close"/>
+ <button name="registration_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
+ <button name="_close" string="Attended" states="open" type="object" icon="gtk-apply"/>
+ <button string="Set To Unconfirmed" name="do_draft" states="cancel,done" type="object" icon="gtk-convert"/>
</tree>
</field>
</record>
<form string="Registration">
<group col="6" colspan="4">
<field name="event_id" on_change="onchange_event(event_id, context)" domain="[('state','in',('draft','confirm'))]"/>
+ <field name="partner_id" attrs="{'readonly':[('state','!=', 'draft')]}" on_change="onchange_partner_id(partner_id, context)"/>
+ <field name="contact_id" attrs="{'readonly':[('state','!=', 'draft')]}" domain="[('partner_id','=',partner_id)]" on_change="onchange_contact_id(contact_id, context)"/>
+ <field name="nb_register"/>
<field name="user_id" attrs="{'readonly':[('state','!=', 'draft')]}"/>
<field name="origin"/>
- <field name="nb_register"/>
</group>
<notebook colspan="4">
<page string="Additional Information">
<group colspan="2" col="2">
<separator string="Contact Information" colspan="2"/>
- <field name="partner_id" attrs="{'readonly':[('state','!=', 'draft')]}" on_change="onchange_partner_id(partner_id, context)" groups="base.group_extended"/>
- <field name="contact_id" attrs="{'readonly':[('state','!=', 'draft')]}" on_change="onchange_contact_id(contact_id, context)" groups="base.group_extended"/>
<field name="name"/>
<field name="email"/>
<field name="phone"/>
</group>
<group colspan="2" col="2" groups="base.group_extended">
<separator string="Dates" colspan="2"/>
- <field name="date_open"/>
+ <field name="create_date"/>
<field name="date_closed"/>
- <field name="date" />
- <field name="date_deadline" />
+ <field name="event_begin_date" />
+ <field name="event_end_date" />
</group>
<separator string="" colspan="4"/>
<group col="8" colspan="4">
<field name="state" select="1" colspan="2" widget="statusbar" statusbar_visible="draft,open,done"/>
<button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
- <button name="button_reg_close" string="Close Registration" states="open" type="object" icon="gtk-close"/>
- <button name="case_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
- <button string="Set To Draft" name="do_draft" states="cancel" type="object" icon="gtk-convert"/>
+ <button name="button_reg_close" string="Attended" states="open" type="object" icon="gtk-apply"/>
+ <button name="registration_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
+ <button string="Set To Unconfirmed" name="do_draft" states="cancel,done" type="object" icon="gtk-convert"/>
</group>
</page>
<page string="Emails" groups="base.group_extended">
<field name="message_ids" colspan="4" nolabel="1" mode="tree">
<tree string="History">
<field name="display_text" string="History Information"/>
- <field name="email_from" invisible="1"/>
+ <field name="reply_to" invisible="1"/>
<button
- string="Reply" attrs="{'invisible': [('email_from', '=', False)]}"
+ string="Reply" attrs="{'invisible': [('reply_to', '=', False)]}"
name="%(mail.action_email_compose_message_wizard)d"
context="{'mail.compose.message.mode':'reply', 'message_id':active_id}"
icon="terp-mail-replied" type="action" />
</tree>
</field>
- <button string="Add Internal Note"
- name="%(crm.action_crm_add_note)d"
- context="{'model': 'crm.lead' }"
- icon="terp-document-new" type="action" />
<button string="Send New Email"
name="%(mail.action_email_compose_message_wizard)d"
icon="terp-mail-message-new" type="action"/>
id="menu_action_registration" parent="base.menu_event_main"
action="action_registration"/>
- <menuitem
- name="Registrations"
- id="menu_action_registration_association" parent="base.menu_event_association"
- action="action_registration"/>
- <menuitem name="Reporting" id="base.menu_report_association" parent="base.marketing_menu" sequence="20"/>
+ <menuitem name="Reporting" id="base.menu_report_association" parent="event_main_menu" sequence="20"/>
</data>
</openerp>