[IMP] hr.config.settings: improve form layout

bzr revid: rco@openerp.com-20120410122234-m5n9it4hy07knte2
This commit is contained in:
Raphael Collet 2012-04-10 14:22:34 +02:00
parent b1f0aa6a54
commit 98b91589cf
6 changed files with 40 additions and 20 deletions

View File

@ -17,13 +17,17 @@
<separator string="Human Resources" colspan="4"/>
<label string="Departments :"/>
<label colspan="1"/>
<button name="%(view_department_form_installer)d" string="Create Your Departments"
type="action" icon="terp-personal+"/>
<group colspan="2">
<button name="%(view_department_form_installer)d" string="Create Your Departments"
type="action" icon="terp-personal+"/>
</group>
<newline/>
<label string="Employees :" />
<label colspan="1"/>
<button name="%(open_view_employee_list_my)d" string="Create Your Employees"
type="action" icon="terp-personal"/>
<group colspan="2">
<button name="%(open_view_employee_list_my)d" string="Create Your Employees"
type="action" icon="terp-personal"/>
</group>
<newline/>
<field name="module_hr_timesheet_sheet"/>
<newline/>
@ -31,8 +35,10 @@
<newline/>
<label string="Salary Rules :"/>
<label colspan="1"/>
<button string="Configure Your Salary Rules" icon="gtk-go-forward"
name="%(open_payroll1_modules)d" type="action" />
<group colspan="2">
<button string="Configure Your Salary Rules" icon="gtk-go-forward"
name="%(open_payroll1_modules)d" type="action" />
</group>
<separator string="Additional Features" colspan="4"/>
<field name="module_hr_expense"/>

View File

@ -18,8 +18,10 @@
<field name="inherit_id" ref="hr.view_human_resources_configuration"/>
<field name="arch" type="xml">
<field name="module_hr_evaluation" position="after">
<button name="%(action_evaluation_plans_installer)d" string="Review Appraisal Plans"
type="action" icon="terp-stock_align_left_24"/>
<group colspan="2">
<button name="%(action_evaluation_plans_installer)d" string="Review Appraisal Plans"
type="action" icon="terp-stock_align_left_24"/>
</group>
</field>
</field>
</record>

View File

@ -35,8 +35,10 @@
<field name="inherit_id" ref="hr.view_human_resources_configuration"/>
<field name="arch" type="xml">
<field name="module_hr_expense" position="after">
<button name="%(product_normal_form_view_installer)d" string="Review Expenses Products"
type="action" icon="terp-accessories-archiver"/>
<group colspan="2">
<button name="%(product_normal_form_view_installer)d" string="Review Expenses Products"
type="action" icon="terp-accessories-archiver"/>
</group>
</field>
</field>
</record>

View File

@ -493,7 +493,10 @@
<field name="inherit_id" ref="hr.view_human_resources_configuration"/>
<field name="arch" type="xml">
<field name="module_hr_holidays" position="after">
<button name="%(hr_holidays.hr_holidays_leaves_assign_legal)d" string="Allocate Leaves" type="action" icon="gtk-apply"/>
<group colspan="2">
<button name="%(hr_holidays.hr_holidays_leaves_assign_legal)d" string="Allocate Leaves"
type="action" icon="gtk-apply"/>
</group>
</field>
</field>
</record>

View File

@ -8,8 +8,10 @@
<field name="inherit_id" ref="hr.view_human_resources_configuration"/>
<field name="arch" type="xml">
<field name="module_hr_recruitment" position="after">
<button name="%(hr_recruitment_stage_form_installer)d" string="Review Recruitment Stages"
type="action" icon="terp-stage"/>
<group colspan="2">
<button name="%(hr_recruitment_stage_form_installer)d" string="Review Recruitment Stages"
type="action" icon="terp-stage"/>
</group>
</field>
<group name="config_recruitment" position="after">
<separator string="Recruitment" colspan="4"/>
@ -17,12 +19,14 @@
<newline/>
<field name="fetchmail_applicants"/>
<group colspan="2" attrs="{'invisible': [('fetchmail_applicants','=',False)]}">
<field name="applicants_server"/>
<field name="applicants_type" on_change="onchange_fetchmail('applicants', applicants_type, applicants_is_ssl)"/>
<field name="applicants_port"/>
<field name="applicants_is_ssl" on_change="onchange_fetchmail('applicants', applicants_type, applicants_is_ssl)"/>
<field name="applicants_user"/>
<field name="applicants_password" password="True"/>
<field name="applicants_server" attrs="{'required': [('fetchmail_applicants','=',True)]}"/>
<field name="applicants_type" attrs="{'required': [('fetchmail_applicants','=',True)]}"
on_change="onchange_fetchmail('applicants', applicants_type, applicants_is_ssl)"/>
<field name="applicants_port" attrs="{'required': [('fetchmail_applicants','=',True)]}"/>
<field name="applicants_is_ssl" attrs="{'required': [('fetchmail_applicants','=',True)]}"
on_change="onchange_fetchmail('applicants', applicants_type, applicants_is_ssl)"/>
<field name="applicants_user" attrs="{'required': [('fetchmail_applicants','=',True)]}"/>
<field name="applicants_password" password="True" attrs="{'required': [('fetchmail_applicants','=',True)]}"/>
</group>
</group>
</field>

View File

@ -8,7 +8,10 @@
<field name="inherit_id" ref="hr.view_human_resources_configuration"/>
<field name="arch" type="xml">
<field name="module_hr_timesheet_sheet" position="after">
<button name="%(hr_timesheet.action_define_analytic_structure)d" string="Create Your Timesheet Accounts" type="action" icon="terp-folder-green"/>
<group colspan="2">
<button name="%(hr_timesheet.action_define_analytic_structure)d" string="Create Your Timesheet Accounts"
type="action" icon="terp-folder-green"/>
</group>
</field>
<group name="config_timesheets" position="after">
<separator string="Timesheets" colspan="4"/>