<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!-- Search Views -->

        <record id="view_resource_resource_search" model="ir.ui.view">
            <field name="name">resource.resource.search</field>
            <field name="model">resource.resource</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Resource">
                   <group>
                       <field name="name" string="Resource"/>
                       <separator orientation="vertical"/>
                       <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
                       <separator orientation="vertical"/>
                       <field name="user_id" string="User"/>
                       <field name="company_id" widget="selection" groups="base.group_multi_company"/>
                       <field name="resource_type"/>
                   </group>
                   <newline/>
                   <group expand="0" string="Group By...">
                        <filter string="User" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
                        <separator orientation="vertical"/>
                        <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'resource_type'}"/>
                        <separator orientation="vertical" groups="base.group_multi_company"/>
                        <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                        <separator orientation="vertical" />
                        <filter string="Working Period" icon="terp-go-today" domain="[]" context="{'group_by':'calendar_id'}"/>
                    </group>
               </search>
            </field>
        </record>

           <record id="view_resource_calendar_search" model="ir.ui.view">
            <field name="name">resource.calendar.search</field>
            <field name="model">resource.calendar</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Working Time">
                   <group>
                       <field name="name" string="Working Time"/>
                       <separator orientation="vertical"/>
                       <field name="manager"/>
                       <field name="company_id" widget="selection" groups="base.group_multi_company"/>
                   </group>
               </search>
            </field>
        </record>

        <record id="view_resource_calendar_leaves_search" model="ir.ui.view">
            <field name="name">resource.calendar.leaves.search</field>
            <field name="model">resource.calendar.leaves</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Working Period Leaves">
                   <group>
                       <field name="name" string="Reason"/>
                       <separator orientation="vertical"/>
                       <field name="resource_id" string="Resource"/>
                       <field name="company_id" string="Company" widget="selection" groups="base.group_multi_company"/>
                       <field name="calendar_id" string="Working Period" widget="selection"/>
                   </group>
                   <newline/>
                   <group expand="0" string="Group By...">
                        <filter string="Resource" icon="terp-personal" domain="[]" context="{'group_by':'resource_id'}"/>
                        <separator orientation="vertical"/>
                        <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                        <separator orientation="vertical" groups="base.group_multi_company"/>
                        <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_from'}" help="Starting Date of Leave"/>
                    </group>
               </search>
            </field>
        </record>

        <record id="resource_calendar_form" model="ir.ui.view">
            <field name="name">resource.calendar.form</field>
            <field name="model">resource.calendar</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Working Time" version="7.0">
                	<sheet>
                    <group col="4">
                        <field name="name"/>
                        <field name="manager"/>
                        <field name="company_id" groups="base.group_multi_company"/>
                    </group>
                    <field name="attendance_ids"/>
                    </sheet>
                </form>
            </field>
        </record>

        <record id="view_resource_calendar_tree" model="ir.ui.view">
            <field name="name">resource.calendar.tree</field>
            <field name="model">resource.calendar</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Working Time">
                    <field name="name"/>
                    <field name="manager"/>
                    <field name="company_id" groups="base.group_multi_company"/>
                </tree>
            </field>
        </record>

        <record id="action_resource_calendar_form" model="ir.actions.act_window">
            <field name="name">Working Time</field>
            <field name="res_model">resource.calendar</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" eval="False"/>
            <field name="search_view_id" ref="view_resource_calendar_search"/>
            <field name="help">Define working hours and time table that could be scheduled to your project members</field>
        </record>

        <record id="view_resource_calendar_attendance_tree" model="ir.ui.view">
            <field name="name">resource.calendar.attendance.tree</field>
            <field name="model">resource.calendar.attendance</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Working Time" editable="top">
                    <field name="name"/>
                    <field name="dayofweek"/>
                    <field name="hour_from" widget="float_time"/>
                    <field name="hour_to" widget="float_time"/>
                </tree>
            </field>
        </record>

        <record id="view_resource_calendar_attendance_form" model="ir.ui.view">
            <field name="name">resource.calendar.attendance.form</field>
            <field name="model">resource.calendar.attendance</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Working Time" version="7.0">
                    <group> 
                        <field name="name"/>
                        <field name="date_from"/>
                        <field name="dayofweek"/>
                        <label for="hour_from" string="Hours"/>
                        <div>
                            <field name="hour_from" widget="float_time"/> - 
                            <field name="hour_to" widget="float_time"/>
                        </div>
                    </group>
                </form>
            </field>
        </record>

        <record id="view_resource_calendar" model="ir.ui.view">
            <field name="name">resource.calendar.leaves.calendar</field>
            <field name="model">resource.calendar.leaves</field><commit_msg>[FIX]: Hours in same line<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!-- Search Views -->

        <record id="view_resource_resource_search" model="ir.ui.view">
            <field name="name">resource.resource.search</field>
            <field name="model">resource.resource</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Resource">
                   <group>
                       <field name="name" string="Resource"/>
                       <separator orientation="vertical"/>
                       <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
                       <separator orientation="vertical"/>
                       <field name="user_id" string="User"/>
                       <field name="company_id" widget="selection" groups="base.group_multi_company"/>
                       <field name="resource_type"/>
                   </group>
                   <newline/>
                   <group expand="0" string="Group By...">
                        <filter string="User" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
                        <separator orientation="vertical"/>
                        <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'resource_type'}"/>
                        <separator orientation="vertical" groups="base.group_multi_company"/>
                        <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                        <separator orientation="vertical" />
                        <filter string="Working Period" icon="terp-go-today" domain="[]" context="{'group_by':'calendar_id'}"/>
                    </group>
               </search>
            </field>
        </record>

           <record id="view_resource_calendar_search" model="ir.ui.view">
            <field name="name">resource.calendar.search</field>
            <field name="model">resource.calendar</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Working Time">
                   <group>
                       <field name="name" string="Working Time"/>
                       <separator orientation="vertical"/>
                       <field name="manager"/>
                       <field name="company_id" widget="selection" groups="base.group_multi_company"/>
                   </group>
               </search>
            </field>
        </record>

        <record id="view_resource_calendar_leaves_search" model="ir.ui.view">
            <field name="name">resource.calendar.leaves.search</field>
            <field name="model">resource.calendar.leaves</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Working Period Leaves">
                   <group>
                       <field name="name" string="Reason"/>
                       <separator orientation="vertical"/>
                       <field name="resource_id" string="Resource"/>
                       <field name="company_id" string="Company" widget="selection" groups="base.group_multi_company"/>
                       <field name="calendar_id" string="Working Period" widget="selection"/>
                   </group>
                   <newline/>
                   <group expand="0" string="Group By...">
                        <filter string="Resource" icon="terp-personal" domain="[]" context="{'group_by':'resource_id'}"/>
                        <separator orientation="vertical"/>
                        <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                        <separator orientation="vertical" groups="base.group_multi_company"/>
                        <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_from'}" help="Starting Date of Leave"/>
                    </group>
               </search>
            </field>
        </record>

        <record id="resource_calendar_form" model="ir.ui.view">
            <field name="name">resource.calendar.form</field>
            <field name="model">resource.calendar</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Working Time" version="7.0">
                	<sheet>
                    <group col="4">
                        <field name="name"/>
                        <field name="manager"/>
                        <field name="company_id" groups="base.group_multi_company"/>
                    </group>
                    <field name="attendance_ids"/>
                    </sheet>
                </form>
            </field>
        </record>

        <record id="view_resource_calendar_tree" model="ir.ui.view">
            <field name="name">resource.calendar.tree</field>
            <field name="model">resource.calendar</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Working Time">
                    <field name="name"/>
                    <field name="manager"/>
                    <field name="company_id" groups="base.group_multi_company"/>
                </tree>
            </field>
        </record>

        <record id="action_resource_calendar_form" model="ir.actions.act_window">
            <field name="name">Working Time</field>
            <field name="res_model">resource.calendar</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" eval="False"/>
            <field name="search_view_id" ref="view_resource_calendar_search"/>
            <field name="help">Define working hours and time table that could be scheduled to your project members</field>
        </record>

        <record id="view_resource_calendar_attendance_tree" model="ir.ui.view">
            <field name="name">resource.calendar.attendance.tree</field>
            <field name="model">resource.calendar.attendance</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Working Time" editable="top">
                    <field name="name"/>
                    <field name="dayofweek"/>
                    <field name="hour_from" widget="float_time"/>
                    <field name="hour_to" widget="float_time"/>
                </tree>
            </field>
        </record>

        <record id="view_resource_calendar_attendance_form" model="ir.ui.view">
            <field name="name">resource.calendar.attendance.form</field>
            <field name="model">resource.calendar.attendance</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Working Time" version="7.0">
                    <group> 
                        <field name="name"/>
                        <field name="date_from"/>
                        <field name="dayofweek"/>
                        <label for="hour_from" string="Hours"/>
                        <div>
                            <field name="hour_from" widget="float_time" class="oe_inline"/> - 
                            <field name="hour_to" widget="float_time" class="oe_inline"/>
                        </div>
                    </group>
                </form>
            </field>
        </record>

        <record id="view_resource_calendar" model="ir.ui.view">
            <field name="name">resource.calendar.leaves.calendar</field>
            <field name="model">resource.calendar.leaves</field>
{'fraction_non_alphanumeric': 0.14581224696356276, 'fraction_numerical': 0.0012651821862348178, 'mean_word_length': 1.722403995178233, 'pattern_counts': {'":': 0, '<': 347, '<?xml version=': 2, '>': 347, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '907242', 'n_tokens_mistral': 4017, 'n_tokens_neox': 3802, 'n_words': 709}