@@ -802,7 +802,6 @@ class SoongWorkflowCommentWizard(models.TransientModel):
|
||||
[('user_id', '=', record_id.log_ids[0].done_by.id)], limit=1)
|
||||
if workflow_record:
|
||||
workflow_record.write({
|
||||
'approve_state': 'end',
|
||||
'employee_ids': [(6, 0, [employee_id.id])],
|
||||
'soong_state': 'to_active',
|
||||
'node_id': False,
|
||||
@@ -833,8 +832,6 @@ class SoongWorkflowCommentWizard(models.TransientModel):
|
||||
else:
|
||||
if workflow_record:
|
||||
workflow_record.sudo().write({
|
||||
'approve_state': 'end',
|
||||
'employee_ids': False,
|
||||
'node_id': False,
|
||||
'soong_state': 'done',
|
||||
})
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
</header>
|
||||
<field name="employee_number" column_invisible="1"/>
|
||||
<field name="employee_id" options="{'no_create': True}"/>
|
||||
<field name="birthday"/>
|
||||
<field name="year" column_invisible="1"/>
|
||||
<!-- <field name="company_id" required="1" optional="show"/>-->
|
||||
<field name="current_year_remaining" options='{ "fg_color": "blue"}'/>
|
||||
@@ -22,7 +23,6 @@
|
||||
<field name="last_year_quota"/>
|
||||
<field name="last_year_used" options='{ "fg_color": "red"}'/>
|
||||
<field name="prev_last_year_remaining" options='{ "fg_color": "blue"}'/>
|
||||
<field name="birthday" groups="hr_payroll.group_hr_payroll_manager"/>
|
||||
<field name="marital_status" groups="hr_payroll.group_hr_payroll_manager"/>
|
||||
<field name="entry_date" groups="hr_payroll.group_hr_payroll_manager"/>
|
||||
<field name="termination_date" groups="hr_payroll.group_hr_payroll_manager"/>
|
||||
|
||||
Reference in New Issue
Block a user