<field name="arch" type="xml">
<form string="Employee" version="7.0">
<sheet>
- <div class="oe_right oe_form_button_box">
+ <div class="oe_right oe_button_box">
<!-- Put here related buttons -->
</div>
- <field class="oe_right" name="photo" widget='image' on_change="onchange_photo(photo)"/>
- <div class="oe_form_title">
- <label for="name" class="oe_form_readonly_hidden"/>
+ <field class="oe_right" name="image_small" widget='image' on_change="onchange_image(image_small)"/>
+ <div class="oe_title">
+ <label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
- <label for="company_id" class="oe_form_readonly_hidden" groups="base.group_multi_company"/>
+ <label for="company_id" class="oe_edit_only" groups="base.group_multi_company"/>
<h2><field name="company_id" widget="selection" on_change="onchange_company(company_id)" groups="base.group_multi_company"/></h2>
- <label for="department_id" class="oe_form_readonly_hidden"/>
+ <label for="department_id" class="oe_edit_only"/>
<h2><field name="department_id" on_change="onchange_department_id(department_id)"/></h2>
</div>
<notebook>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Employees">
- <field name="name" string="Employees" filter_domain="[('name','ilike',self)]"/>
+ <field name="name" string="Employees"/>
<separator orientation="vertical"/>
<field name="department_id" widget="selection"/>
<field name="job_id" widget="selection"/>
<t t-name="kanban-box">
<div class="oe_employee_vignette">
<div class="oe_employee_image">
- <a type="edit"><img t-att-src="kanban_image('hr.employee', 'photo', record.id.value)" class="oe_employee_picture"/></a>
+ <a type="edit"><img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.value)" class="oe_employee_picture"/></a>
</div>
<div class="oe_employee_details">
<h4><a type="edit"><field name="name"/> (<field name="login"/>)</a></h4>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Jobs">
- <field name="name" string="Job" filter_domain="[('name','ilike',self)]"/>
+ <field name="name" string="Job"/>
<separator orientation="vertical"/>
<filter icon="terp-camera_test"
domain="[('state','=','open')]"