Merge pull request #2854 from expsa/Esraa-Ensan-hr-tasks
nomination edits
This commit is contained in:
commit
1e074a2e41
|
|
@ -6,7 +6,7 @@
|
|||
<record id="hr_official_mission_emp_rule" model="ir.rule">
|
||||
<field name="name">Employee: views its missions records</field>
|
||||
<field name="model_id" ref="model_hr_official_mission"/>
|
||||
<field name="domain_force">['|', ('employee_id.user_id', '=', user.id),
|
||||
<field name="domain_force">['|','|', ('employee_id.user_id', '=', user.id), ('employee_ids.employee_id.user_id', '=', user.id),
|
||||
('employee_ids.employee_id.department_id.manager_id.user_id', '=', user.id)]
|
||||
</field>
|
||||
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
<button name="action_training_appraisal" string="Training Course Appraisal" type="object" class="oe_highlight"
|
||||
icon="fa-users" attrs="{'invisible':['|',('state','in',('draft','refused')),('appraisal_found','=',True)]}"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="draft,depart_manager,hr_aaproval,approve,refused"/>
|
||||
statusbar_visible="draft,send,direct_manager,depart_manager,hr_aaproval,approve,refused"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="hr_nomination" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
||||
<field name="hr_nomination" attrs="{'readonly': [('state', '!=', 'draft')]}" groups="hr.group_hr_user"/>
|
||||
<field name="process_type" invisible="1"/>
|
||||
<field name="mission_type" string="Mission Type" required="1"
|
||||
domain="[('work_state', '=', 'training'),('special_hours', '!=', True)]"
|
||||
|
|
|
|||
Loading…
Reference in New Issue