diff --git a/addons_extensions/leaves_timesheets_extended/models/hr_leave_allocation.py b/addons_extensions/leaves_timesheets_extended/models/hr_leave_allocation.py index f0028661c..d29d7643c 100644 --- a/addons_extensions/leaves_timesheets_extended/models/hr_leave_allocation.py +++ b/addons_extensions/leaves_timesheets_extended/models/hr_leave_allocation.py @@ -19,7 +19,7 @@ class HrLeaveAllocation(models.Model): ('validate', 'Approved'), ('refuse', 'Rejected'), ], - string='Status', + string='Status',default='draft', tracking=True,copy=False) diff --git a/addons_extensions/leaves_timesheets_extended/views/hr_leave_allocation.xml b/addons_extensions/leaves_timesheets_extended/views/hr_leave_allocation.xml index 6b35ed640..167212d0c 100644 --- a/addons_extensions/leaves_timesheets_extended/views/hr_leave_allocation.xml +++ b/addons_extensions/leaves_timesheets_extended/views/hr_leave_allocation.xml @@ -29,4 +29,27 @@ + + + hr.leave.allocation.form.manager.inherit + hr.leave.allocation + + + + + + + + + + + + + + + + + \ No newline at end of file