<openerp>
<data>
- <menuitem name="Events" id="event_main_menu"/>
+ <menuitem name="Events" id="event_main_menu"
+ web_icon="images/icon.png"
+ web_icon_hover="images/icon.png"/>
<menuitem name="Events Organisation" id="base.menu_event_main" parent="event_main_menu" />
<!-- EVENTS -->
<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 -->
+
+ <!-- Event Item Tree view-->
+ <record model="ir.ui.view" id="view_event_items_tree">
+ <field name="name">Event Items Tree</field>
+ <field name="model">event.items</field>
+ <field name="type">tree</field>
+ <field name="arch" type="xml">
+ <tree string="Event Items">
+ <field name="product_id" string="Ticket Type" />
+ <field name="uom_id"/>
+ <field name="sales_end_date"/>
+ <field name="price"/>
+ <field name="qty"/>
+ </tree>
+ </field>
+ </record>
+ <!-- Event Item Form View -->
+ <record model="ir.ui.view" id="view_event_items_form">
+ <field name="name">Event Items Form</field>
+ <field name="model">event.items</field>
+ <field name="type">form</field>
+ <field name="arch" type="xml">
+ <form string="Event Items">
+ <field name="product_id" on_change="onchange_product_id(product_id)"/>
+ <field name="price"/>
+ <field name="qty"/>
+ <field name="uom_id"/>
+ <field name="discount"/>
+ <field name="sales_end_date"/>
+ </form>
+ </field>
+ </record>
+
+<!-- Events Organisation/CONFIGURATION/EVENTS -->
<record model="ir.ui.view" id="view_event_form">
<field name="name">Events</field>
</field>
</record>
+
+ <!-- Events Organisation/CONFIGURATION/EVENTS PAGE VIEW -->
+
+ <record model="ir.ui.view" id="view_event_page">
+ <field name="name">Events</field>
+ <field name="model">event.event</field>
+ <field name="type">form</field>
+ <field name="arch" type="xml">
+ <form string="Events" layout="manual">
+ <div class="oe_form_topbar" readonly="1">
+ <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>
+ </div>
+ <sheet string="Event Form" layout="auto">
+ <group col="2">
+ <group col="2">
+ <div class="oe_event_title">
+ <field name="name" nolabel="1" readonly="1"/>
+ </div>
+ <newline/>
+ <group colspan="4" name="venue">
+ <div class="oe_sub1"> Venue : </div> <separator orientation="vertical"/>
+ <field name="location_id" nolabel="1" readonly="1"/>
+ </group>
+ </group>
+ <group>
+ <div id = "oe_mapbox" class="oe_mapbox"> </div><newline/>
+ <table>
+ <tr>
+ <td width="70px" class="oe_td_border">
+ Where
+ </td>
+ <td width="auto">
+ <field name="address_id" widget ="geo_address" nolabel="1"/>
+ </td>
+ <td width="210px">
+ <table>
+ <tr>
+ <td class="oe_td_date_border">Start: </td><td><field name="date_begin" nolabel="1" readonly="1"/></td>
+ </tr>
+ <tr>
+ <td class="oe_td_date_border">End</td><td><field name="date_end" nolabel="1" readonly="1"/></td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+ </table>
+ </group>
+ </group>
+ <separator string="Event Details" colspan="4"/>
+ <field name="note" colspan="4" nolabel="1" readonly="1"/>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
<!-- Event tree view -->
<record model="ir.ui.view" id="view_event_tree">
</p>
<t t-if="record.register_avail.raw_value != 0">
<t t-if="!record.is_subscribed.raw_value">
- <button 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="subscribe_button oe_event_button_subscribe">
<span >Subscribe</span>
</button>
</t>