[remove] remove the unused console statement.
[odoo/odoo.git] / addons / event / event_view.xml
index 87e29a6..b4df8cb 100644 (file)
             </field>
         </record>
 
-    <!-- Events Organisation/CONFIGURATION/EVENTS -->
+<!-- Events Organisation/CONFIGURATION/EVENTS -->
 
         <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"  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>
-               </div>
-               <sheet string="Event Form" layout="auto">
-                       <group col="2">
-                               <group col="2">
-                                       <div class="oe_event_title">
-                                       <field name="name" nolabel="1"/>
-                                   </div>
-                                   <newline/>
-                                   <group colspan="4" name="venue">
-                               <div class="oe_sub1"> Venue   : </div> <separator orientation="vertical"/>
-                               <field name="location_id" nolabel="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="150px">
-                                                   <field name="address_id" widget = "geo_address" nolabel="1"/>
-                                               </td>
-                                               <td width="auto">
-                                               <table>
-                                                                                       <tr>
-                                                                                               <td class="oe_td_date_border">Start: </td><td><field name="date_begin" nolabel="1"/></td>
-                                                                                       </tr>
-                                                                                       <tr>
-                                                                                               <td class="oe_td_date_border">End</td><td><field name="date_end" nolabel="1"/></td>
-                                                                                       </tr>
-                                                                               </table>
-                                        
-                                               </td>
-                                            </tr>
-                                    </table>   
-                                    </group>
-                    </group>   
+                <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">
+                        <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" />
                                     </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)]"/>
                         <separator string="Other Speakers" colspan="4"/>
                         <field name="speaker_ids" domain="[('speaker','=',True)]" colspan="4" nolabel="1"/>
                     </page>
-                    <page string="Extra Info" groups="event.group_event_manager">
+                    <page string="Extra Info">
                         <group col="2" colspan="2">
                             <separator string="Registrations" colspan="2"/>
                             <field name="register_min"/>
                         </group>
                     </page>
                     </notebook>
+            </form>
+            </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>