</group>
<notebook>
<page string="Information">
- <group col="4">
- <group string="Linked User">
+ <group>
+ <group>
<field name="parent_id" />
<field name="coach_id"/>
</group>
<group>
- <field name="identification_id" groups="base.group_hr_user"/>
+ <!--<field name="identification_id" groups="base.group_hr_user"/>-->
<field name="passport_id" groups="base.group_hr_user"/>
<field name="otherid" groups="base.group_hr_user"/>
+ </group>
+ <group name="active_group">
<field name="active"/>
</group>
<!-- <group string="General">
<field name="active" position="before">
<label for="state"/>
<div>
- <field name="state" class="oe_inline"/>
+ <field name="state" class="oe_inline"/>
+ <label/>
<button class="oe_inline" name="attendance_action_change" states="present" string="Sign Out" type="object" icon="gtk-go-forward" context="{'type':'sign_out'}" groups="base.group_hr_user"/>
<button class="oe_inline" name="attendance_action_change" states="absent" string="Sign In" type="object" icon="gtk-go-back" context="{'type':'sign_in'}" groups="base.group_hr_user"/>
</div>
<xpath expr="//field[@name='parent_id']" position="before">
<field name="manager"/>
</xpath>
- <field name="coach_id" position="after">
- <field name="vehicle"/>
- <field name="vehicle_distance"/>
- </field>
+ <xpath expr="//group[@name='active_group']" position="before">
+ <group>
+ <field name="vehicle"/>
+ <field name="vehicle_distance"/>
+ </group>
+ </xpath>
<field name="active" position="before">
<field name="medic_exam" string="Medical Examination"/>
</field>
<field name="type">form</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
- <xpath expr="//div[@name='button_box']" position="inside">
- <button name="%(act_hr_employee_holiday_request)d" string="Leaves" type="action"/>
- </xpath>
<field name="active" position="before">
- <field name="remaining_leaves"/>
+ <label for="remaining_leaves"/>
+ <div>
+ <field name="remaining_leaves" class="oe_inline"/>
+ <label/>
+ <button name="%(act_hr_employee_holiday_request)d" string="Leaves" type="action" class="oe_inline"/>
+ </div>
</field>
</field>
</record>
<xpath expr="//field[@name='parent_id']" position="before">
<field name="manager"/>
</xpath>
- <field name="coach_id" position="after">
- <field name="vehicle"/>
- <field name="vehicle_distance"/>
- </field>
+ <xpath expr="//group[@name='active_group']" position="before">
+ <group>
+ <field name="vehicle"/>
+ <field name="vehicle_distance"/>
+ </group>
+ </xpath>
<field name="active" position="before">
<field name="medic_exam" string="Medical Examination"/>
</field>
<field name="arch" type="xml">
<page string="Personal Information" position="after">
<page string="Timesheets" groups="base.group_hr_user">
+ <div class="oe_right oe_button_box" name="button_timesheet">
+ <!-- Put here related buttons -->
+ </div>
<group col="4">
- <field name="product_id" domain="[('type','=','service')]"/>
- <field name="journal_id"/>
+ <group col="2">
+ <field name="product_id" domain="[('type','=','service')]"/>
+ <field name="journal_id"/>
+ </group>
</group>
</page>
</page>
<record id="hr_timesheet_sheet_employee_extd_form" model="ir.ui.view">
<field name="name">hr.timesheet.sheet.employee.extd_form</field>
<field name="model">hr.employee</field>
- <field name="inherit_id" ref="hr.view_employee_form"/>
+ <field name="inherit_id" ref="hr_timesheet.hr_timesheet_employee_extd_form"/>
<field name="arch" type="xml">
- <xpath expr="//div[@name='button_box']" position="inside">
+ <xpath expr="//div[@name='button_timesheet']" position="inside">
<button name="%(act_hr_employee_2_hr_timesheet)d" string="Timesheets" type="action"/>
</xpath>
</field>