[IMP]:improved hr view with new style.

bzr revid: apa@tinyerp.com-20120622124758-epddnzizjmkk3dgz
This commit is contained in:
Amit Patel (OpenERP)
2012-06-22 18:17:58 +05:30
parent e78a09065a
commit e1f8485ce3
3 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -36,8 +36,8 @@
<field class="oe_inline" name="work_location" domain="[('state','!=','old')]" context="{'form_view_ref': 'hr.view_hr_job_employee_form'}"/>
</h1>
<label for="department_id" class="oe_edit_only"/>
<h2><field name="department_id" on_change="onchange_department_id(department_id)" class="oe_inline"/></h2>
<h3><field name="category_ids" widget="many2many_tags" class="oe_inline"/></h3>
<h2><field name="department_id" on_change="onchange_department_id(department_id)"/></h2>
<h3><field name="category_ids" widget="many2many_tags"/></h3>
</div>
<group colspan="4" col="4">
<field name="work_email" widget="email" />
+4 -2
View File
@@ -100,8 +100,10 @@
<field name="arch" type="xml">
<page string="Personal Information" position="after">
<page string="Timesheets" groups="base.group_hr_user">
<field name="product_id" domain="[('type','=','service')]"/>
<field name="journal_id" widget="selection"/>
<group col="4">
<field name="product_id" domain="[('type','=','service')]"/>
<field name="journal_id"/>
</group>
</page>
</page>
</field>
@@ -356,9 +356,9 @@
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<div class="oe_right oe_button_box" position="inside">
<button name="%(act_hr_employee_2_hr_timesheet)d" string="Timesheets" type="action"/>
</div>
<xpath expr="//div[@name='button_box']" position="inside">
<button name="%(act_hr_employee_2_hr_timesheet)d" string="Timesheets" type="action"/>
</xpath>
</field>
</record>