<openerp>
<data>
- <menuitem name="Events" id="event_main_menu"
- web_icon="images/icon.png"
- web_icon_hover="images/icon.png"/>
+ <menuitem name="Events" id="event_main_menu"/>
<menuitem name="Events Organisation" id="base.menu_event_main" parent="event_main_menu" />
<!-- EVENTS -->
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Event Type">
- <field name="name" select="1"/>
- <field name="default_reply_to"/>
- <field name="default_email_event" domain="[('model_id.model','=','event.registration')]"/>
- <field name="default_email_registration" domain="[('model_id.model','=','event.registration')]"/>
- <field name="default_registration_min"/>
- <field name="default_registration_max"/>
+ <group col="4">
+ <field name="name"/>
+ <field name="default_reply_to"/>
+ <field name="default_email_event" domain="[('model_id.model','=','event.registration')]"/>
+ <field name="default_email_registration" domain="[('model_id.model','=','event.registration')]"/>
+ <field name="default_registration_min"/>
+ <field name="default_registration_max"/>
+ </group>
</form>
</field>
</record>
<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" groups="base.group_no_one"/>
-<!-- Events Organisation/CONFIGURATION/EVENTS -->
+ <!-- Events Organisation/CONFIGURATION/EVENTS -->
-<!-- <record model="ir.ui.view" id="view_event_form">
+ <record model="ir.ui.view" id="view_event_form">
<field name="name">Events</field>
<field name="model">event.event</field>
<field name="type">form</field>
<field name="arch" type="xml">
- <form string="Events">
- <group col="6" colspan="4">
- <field name="name"/>
- <field name="date_begin"/>
- <field name="date_end"/>
- <field name="type" on_change="onchange_event_type(type,context)"/>
- <field name="user_id"/>
- <field name="address_id" />
- </group>
- <notebook colspan="4">
- <page string="Event">
- <separator string="Description" colspan="4"/>
- <field name="note" colspan="4" nolabel="1"/>
- <field name="registration_ids" colspan="4" nolabel="1" groups="event.group_event_manager,event.group_event_user">
- <tree string="Registration" editable="top">
- <field name="name" />
- <field name="email" />
- <field name="phone"/>
- <field name="nb_register" />
- <field name="state"/>
- <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">
- <field name="partner_id" attrs="{'readonly':[('state','!=', 'draft')]}" on_change="onchange_partner_id(partner_id, context)" />
- <field name="name"/>
- <group colspan="4" col="4">
- <field name="email"/>
- <field name="phone"/>
- </group>
- <group colspan="4" col="4">
- <field name="nb_register"/>
- </group>
- <group colspan="4" col="4">
- </group>
- <group col="8" colspan="4">
- <separator string="" colspan="4"/>
- <newline/>
- <field name="state" select="1" colspan="2"/>
- <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 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,done" type="object" icon="gtk-convert"/>
+ <form string="Events" version="7.0">
+ <header>
+ <button string="Confirm Event" name="button_confirm" states="draft" type="object"/>
+ <button string="Event Ended" name="button_done" states="confirm" type="object"/>
+ <button string="Set To Draft" name="button_draft" states="cancel,done" type="object"/>
+ <button string="Cancel Event" name="button_cancel" states="draft,confirm" type="object"/>
+ <field name="state" widget="statusbar" statusbar_visible="draft,confirm,done"/>
+ </header>
+ <sheet>
+
+ <div class="oe_right" style="height: 200px"></div>
+ <div class="oe_title">
+ <h1><field name="name"/></h1>
+ <group>
+ <group>
+ <field name="type" on_change="onchange_event_type(type,context)"/>
+ <field name="user_id"/>
+ <field name="address_id" widget="many2one_address_google_map" widget_option="{'placeholder':'.oe_google_map'}"/>
</group>
- </page>
- <page string="Speakers">
- <field name="main_speaker_id" domain="[('speaker','=',True)]" context="{'default_speaker':1}"/>
- <field name="speaker_confirmed"/>
- <separator string="Other Speakers" colspan="4"/>
- <field name="speaker_ids" domain="[('speaker','=',True)]" context="{'default_speaker':1}" colspan="4" nolabel="1"/>
- </page>
- <page string="Extra Info">
- <group col="2" colspan="2">
- <separator string="Registrations" colspan="2"/>
+ <group>
+ <field name="date_begin"/>
+ <field name="date_end"/>
<field name="register_min"/>
<field name="register_max"/>
- <field name="register_prospect"/>
- <field name="register_current"/>
- <field name="register_attended"/>
- <field name="location_id"/>
</group>
- <group col="2" colspan="2">
- <separator string="Emails" colspan="2"/>
- <field name="reply_to"/>
- <field name="email_registration_id" domain="[('model_id.model','=','event.registration')]"/>
- <field name="email_confirmation_id" domain="[('model_id.model','=','event.registration')]"/>
- </group>
- </page>
- </notebook>
- </form>
- </field>
- </record> -->
-
- <record model="ir.ui.view" id="view_event_form">
- <field name="name">Events</field>
- <field name="model">event.event</field>
- <field name="type">form</field>
- <field name="priority">20</field>
- <field name="arch" type="xml">
- <form string="Preview" layout="manual">
- <div class="oe_form_topbar">
- <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,done" type="object" icon="gtk-convert"/>
- <div class="oe_right">
- <field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}'/>
- </div>
+ </group>
</div>
- <sheet layout="auto">
- <group colspan="4" col="2">
- <field name="name" class="oe_form_title" width="60%%" nolabel="1"/>
- </group>
- <group colspan="4" col="5" class="oe_form_group_label_border" style="margin-top: 20px;">
- <field name="address_id" widget ="geo_address" string="Venue"/>
- </group>
- <group colspan="2" col="2" class="oe-listview-content">
- <label string="Ticket Description"/>
- <label string="Quantity"/>
- <field nolabel="1" name="full_name" />
- <field nolabel="1" name="register_max" />
- </group>
- <newline/>
- <group colspan="2">
- <button name="order_now" string="Order Now" type="object" icon="gtk-apply" align="Right"/>
- </group>
- <!-- <notebook colspan="4">
- <page string="Event">
- <separator string="Description" colspan="4"/>
+
+ <notebook>
+ <page string="Event Description">
<field name="note" colspan="4" nolabel="1"/>
+ </page>
+ <page string="Internal Data">
+ <group class="oe_group_label_border" colspan="2" col="2">
+ <field name="register_current"/>
+ <field name="register_prospect"/>
+ <field name="register_attended"/>
+ </group>
+ <group class="oe_group_label_border" colspan="2" col="2">
+ <field name="main_speaker_id" domain="[('speaker','=',True)]" context="{'default_speaker':1}"/>
+ <field name="speaker_confirmed"/>
+ </group>
<field name="registration_ids" colspan="4" nolabel="1" groups="event.group_event_manager,event.group_event_user">
<tree string="Registration" editable="top">
<field name="name" />
</group>
</form>
</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,done" type="object" icon="gtk-convert"/>
- </group>
</page>
- <page string="Speakers">
- <field name="main_speaker_id" domain="[('speaker','=',True)]" context="{'default_speaker':1}"/>
- <field name="speaker_confirmed"/>
- <separator string="Other Speakers" colspan="4"/>
- <field name="speaker_ids" domain="[('speaker','=',True)]" context="{'default_speaker':1}" colspan="4" nolabel="1"/>
- </page>
- <page string="Extra Info">
- <group col="2" colspan="2">
- <separator string="Registrations" colspan="2"/>
- <field name="register_min"/>
- <field name="register_max"/>
- <field name="register_prospect"/>
- <field name="register_current"/>
- <field name="register_attended"/>
- <field name="location_id"/>
- </group>
- <group col="2" colspan="2">
- <separator string="Emails" colspan="2"/>
- <field name="reply_to"/>
- <field name="email_registration_id" domain="[('model_id.model','=','event.registration')]"/>
- <field name="email_confirmation_id" domain="[('model_id.model','=','event.registration')]"/>
- </group>
- </page>
-
- </notebook> -->
- <separator colspan="4" string="Details"/>
- <field name="note" nolabel="1" colspan="4"/>
- </sheet>
-
+ </notebook>
+ </sheet>
+ <div class="oe_sheet_width">
+ <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+ </div>
</form>
- </field>
- </record>
-
-
+ </field>
+ </record>
<!-- Event tree view -->
<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="Event Done" help="Event Done" name="button_done" states="confirm" type="object" icon="gtk-jump-to"/>
- <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>
-
+
<!-- Event Kanban View -->
-
- <record model="ir.ui.view" id="view_event_kanban">
+
+ <record model="ir.ui.view" id="view_event_kanban">
<field name="name">event.event.kanban</field>
<field name="model">event.event</field>
<field name="type">kanban</field>
</p>
<t t-if="record.register_avail.raw_value != 0">
<t t-if="!record.is_subscribed.raw_value">
- <input t-att-id="record.id.raw_value" type="text" name="subscribe" class="no_of_seats" value="1" onchange="document.getElementById('btn_sub' +this.id).setAttribute('data-context',JSON.stringify({'ticket':this.value}))"/>
- <button t-att-id="'btn_sub'+record.id.raw_value" type="object" name="subscribe_to_event" class="subscribe_button oe_event_button_subscribe">
+ <input t-att-id="record.id.raw_value" type="text" name="subscribe" class="no_of_seats" value="1" onchange="document.getElementById('btn_sub' +this.id).setAttribute('data-context',JSON.stringify({'ticket':this.value}))"/>
+ <button t-att-id="'btn_sub'+record.id.raw_value" type="object" name="subscribe_to_event" class="oe_mail_button_follow">
<span >Subscribe</span>
</button>
- <a string="Edit" icon="gtk-edit" type="edit"/>
</t>
</t>
<t t-if="record.is_subscribed.raw_value">
- <button type="object" name="unsubscribe_to_event" class="unsubscribe_button oe_event_button_unsubscribe">
+ <button type="object" name="unsubscribe_to_event" class="oe_mail_button_unfollow">
<span>Subscribed</span>
<span class="unsubscribe">Unsubscribe</span>
</button>
-
</t>
</div>
</div>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Events">
+ <filter icon="terp-mail-message-new"
+ string="Inbox" help="Unread messages"
+ name="needaction_pending"
+ domain="[('needaction_pending','=',True)]"/>
+ <separator orientation="vertical"/>
<group>
<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"/>
<filter string="Responsible" icon="terp-personal" context="{'group_by': 'user_id'}"/>
<separator orientation="vertical"/>
<filter string="Event Type" icon="terp-crm" context="{'group_by':'type'}"/>
- <filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
+ <filter string="Status" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
<separator orientation="vertical"/>
<filter string="Starting Date" icon="terp-go-month"
domain="[]" context="{'group_by':'date_begin'}"/>
<field name="user_id"/>
<field name="origin"/>
<field name="state"/>
- <button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
- <button name="registration_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
- <button name="button_reg_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>
<field name="model">event.registration</field>
<field name="type">form</field>
<field name="arch" type="xml">
- <form string="Registration">
+ <form version="7.0">
+ <header>
+ <button name="registration_open" string="Confirm" states="draft" type="object"/>
+ <button name="button_reg_close" string="Attended" states="open" type="object"/>
+ <button string="Set To Unconfirmed" name="do_draft" states="cancel,done" type="object"/>
+ <button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object"/>
+ <field name="state" select="1" nolabel="1" colspan="2" widget="statusbar" statusbar_visible="draft,open,done"/>
+ </header>
+ <sheet string="Registration" layout="auto">
<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="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="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">
<!--
</page>
</notebook>
+ </sheet>
+ <div class="oe_sheet_width">
+ <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+ </div>
</form>
</field>
</record>
<field name="arch" type="xml">
<search string="Event Registration">
<group>
+ <filter icon="terp-mail-message-new"
+ string="Inbox" help="Unread messages"
+ name="needaction_pending"
+ domain="[('needaction_pending','=',True)]"/>
+ <separator orientation="vertical"/>
<filter icon="terp-check" string="New" name="draft" domain="[('state','=','draft')]" help="Registrations in unconfirmed state"/>
<filter icon="terp-camera_test" string="Confirmed" domain="[('state','=','open')]" help="Confirmed registrations"/>
<separator orientation="vertical"/>
<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
<separator orientation="vertical"/>
<filter string="Event" icon="terp-crm" domain="[]" context="{'group_by':'event_id'}"/>
- <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
+ <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
</group>
</search>
<field name="view_mode">tree,form,calendar,graph</field>
<field name="context">{}</field>
<field name="search_view_id" ref="view_registration_search"/>
- </record>
+ </record>view_
<menuitem
name="Registrations"