<commit_before><?xml version="1.0"?>
<openerp>
    <data>

        <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  -->

    <!-- EVENTS/CONFIGURATION/TYPE OF EVENTS -->
        <record model="ir.ui.view" id="view_event_type_form">
            <field name="name">Event type</field>
            <field name="model">event.type</field>
            <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"/>
                </form>
            </field>
        </record>

        <record model="ir.ui.view" id="view_event_type_tree">
            <field name="name">Event type</field>
            <field name="model">event.type</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Event Type">
                    <field name="name"/>
                </tree>
            </field>
        </record>

        <record model="ir.actions.act_window" id="action_event_type">
            <field name="name">Types of Events</field>
            <field name="res_model">event.type</field>
            <field name="view_type">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 -->

        <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="Confirm Event" name="button_confirm" states="draft" type="object"/>
                    <button string="Mark Done" 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"/>
                    <div class="oe_right">
                        <field name="state" select="1" nolabel="1" widget="statusbar" statusbar_visible="draft,confirm,done"/>
                    </div>
                    <div class="oe_clear"/>
                </div>
                <sheet layout="auto">
                <group colspan="4">
                  <group col="2" colspan="2" class="oe_form_group_label_border"  >
                  <field name="name" required="1" nolabel="1" class="oe_form_title" /><br/><br/><br/>
                    <field name="type" on_change="onchange_event_type(type,context)"/>
                    <field name="user_id"/>
                    <field name="address_id" widget ="many2one_Geo_address"/>
                  </group>
                  <group colspan="2" col="2">
                    <div id = "oe_mapbox" class="oe_mapbox">
                    </div>
                  </group>  
                  <group colspan="4">
                     <group col="4" colspan="2" class="oe_form_group_label_border" >
                           <field name="register_min"/>
                           <field name="register_max"/>
                     </group>
                     <group colspan="2" col="2">
	                   <div>
	                        <table  width="400px" >
	                         <tr>
	                           <td  class="oe_td_border">
	                               Where :
	                           </td>
	                           <td width="auto">
	                            <field name="street" nolabel="1" readonly="1"/><br/>
	                             <field name="state_id" nolabel="1" readonly="1"/><br/>
	                              <field name="city" nolabel="1" readonly="1"/><br/>
	                               <field name="country_id" nolabel="1" readonly="1"/><br/>
	                               <field name="zip" nolabel="1" readonly="1"/><br/>
	                           </td>
	                           <td width="10px" >
	                               <table width="150px" >
	                                <tr >
	                                  <td class="oe_td_date_border">Start: </td><td width="auto"><field name="date_begin" nolabel="1" /></td>
	                                </tr>
	                                <tr >
	                                  <td class="oe_td_date_border">End</td><td width="auto"><field name="date_end" nolabel="1" /></td>
	                                </tr><newline/>
	                              </table>
	                           </td>
	                         </tr>
	                       </table>
	                    </div>
                     </group>
                  </group>
                  </group>
                <notebook colspan="4">
                <page string="Event Details">
                <separator colspan="4" string="Details" nolabel="1"/>
                <field name="note" colspan="4" nolabel="1"/>    
                </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="Event Registration">
	                     <group col="6" colspan="4" class="oe_form_group_label_border" >
                            <field name="register_current"/>
                            <field name="register_prospect"/>
                            <field name="register_attended"/>
	                     </group> 
	                     <br/>
	                     <br/>                   
                        <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>
                    </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"/>
                        </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>
            </sheet>
            </form>
            </field>
        </record>

        <!-- Event tree view -->

        <record model="ir.ui.view" id="view_event_tree">
            <field name="name">event.event.tree</field><commit_msg>[REM]: Remove duplicate page view<commit_after><?xml version="1.0"?>
<openerp>
    <data>

        <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  -->

    <!-- EVENTS/CONFIGURATION/TYPE OF EVENTS -->
        <record model="ir.ui.view" id="view_event_type_form">
            <field name="name">Event type</field>
            <field name="model">event.type</field>
            <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"/>
                </form>
            </field>
        </record>

        <record model="ir.ui.view" id="view_event_type_tree">
            <field name="name">Event type</field>
            <field name="model">event.type</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Event Type">
                    <field name="name"/>
                </tree>
            </field>
        </record>

        <record model="ir.actions.act_window" id="action_event_type">
            <field name="name">Types of Events</field>
            <field name="res_model">event.type</field>
            <field name="view_type">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 -->

        <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="Confirm Event" name="button_confirm" states="draft" type="object"/>
                    <button string="Mark Done" 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"/>
                    <div class="oe_right">
                        <field name="state" select="1" nolabel="1" widget="statusbar" statusbar_visible="draft,confirm,done"/>
                    </div>
                    <div class="oe_clear"/>
                </div>
                <sheet layout="auto">
                <group colspan="4">
                  <group col="2" colspan="2" class="oe_form_group_label_border"  >
                  <field name="name" required="1" nolabel="1" class="oe_form_title" /><br/><br/><br/>
                    <field name="type" on_change="onchange_event_type(type,context)"/>
                    <field name="user_id"/>
                    <field name="address_id" widget ="many2one_Geo_address"/>
                  </group>
                  <group colspan="2" col="2">
                    <div id = "oe_mapbox" class="oe_mapbox">
                    </div>
                  </group>  
                  <group colspan="4">
                     <group col="4" colspan="2" class="oe_form_group_label_border" >
                           <field name="register_min"/>
                           <field name="register_max"/>
                     </group>
                     <group colspan="2" col="2">
	                   <div>
	                        <table  width="400px" >
	                         <tr>
	                           <td  class="oe_td_border">
	                               Where :
	                           </td>
	                           <td width="auto">
	                            <field name="street" nolabel="1" readonly="1"/><br/>
	                             <field name="state_id" nolabel="1" readonly="1"/><br/>
	                              <field name="city" nolabel="1" readonly="1"/><br/>
	                               <field name="country_id" nolabel="1" readonly="1"/><br/>
	                               <field name="zip" nolabel="1" readonly="1"/><br/>
	                           </td>
	                           <td width="10px" >
	                               <table width="150px" >
	                                <tr >
	                                  <td class="oe_td_date_border">Start: </td><td width="auto"><field name="date_begin" nolabel="1" /></td>
	                                </tr>
	                                <tr >
	                                  <td class="oe_td_date_border">End</td><td width="auto"><field name="date_end" nolabel="1" /></td>
	                                </tr><newline/>
	                              </table>
	                           </td>
	                         </tr>
	                       </table>
	                    </div>
                     </group>
                  </group>
                  </group>
                <notebook colspan="4">
                <page string="Event Details">
                <separator colspan="4" string="Details" nolabel="1"/>
                <field name="note" colspan="4" nolabel="1"/>    
                </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="Event Registration">
	                     <group col="6" colspan="4" class="oe_form_group_label_border" >
                            <field name="register_current"/>
                            <field name="register_prospect"/>
                            <field name="register_attended"/>
	                     </group> 
	                     <br/>
	                     <br/>                   
                        <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>
                    </page>
                    </notebook>
            </sheet>
            </form>
            </field>
        </record>

        <!-- Event tree view -->

        <record model="ir.ui.view" id="view_event_tree">
            <field name="name">event.event.tree</field>
{'fraction_non_alphanumeric': 0.1407489304427246, 'fraction_numerical': 0.006777868576647599, 'mean_word_length': 1.3020914020139427, 'pattern_counts': {'":': 0, '<': 411, '<?xml version=': 2, '>': 411, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5143413', 'n_tokens_mistral': 5357, 'n_tokens_neox': 4952, 'n_words': 916}