From e8a819d594c52d6280fed81d11102c5541b64c37 Mon Sep 17 00:00:00 2001 From: Laetitia Da Costa Date: Tue, 9 Sep 2025 10:03:33 +0200 Subject: [PATCH] [FIX]allow_negative_leave_and_allocation:fix duration check --- allow_negative_leave_and_allocation/__manifest__.py | 2 +- .../models/hr_leave_allocation.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/allow_negative_leave_and_allocation/__manifest__.py b/allow_negative_leave_and_allocation/__manifest__.py index 2c4044e..f4d5139 100644 --- a/allow_negative_leave_and_allocation/__manifest__.py +++ b/allow_negative_leave_and_allocation/__manifest__.py @@ -3,7 +3,7 @@ { "name": "allow_negative_leave_and_allocation", - "version": "16.0.1.0.1", + "version": "16.0.1.0.2", "author": "Elabore", "website": "https://elabore.coop", "maintainer": "Elabore", diff --git a/allow_negative_leave_and_allocation/models/hr_leave_allocation.py b/allow_negative_leave_and_allocation/models/hr_leave_allocation.py index 09ef58f..b2a7076 100644 --- a/allow_negative_leave_and_allocation/models/hr_leave_allocation.py +++ b/allow_negative_leave_and_allocation/models/hr_leave_allocation.py @@ -15,5 +15,4 @@ class HrLeaveAllocation(models.Model): "(holiday_type='department' AND department_id IS NOT NULL) or " "(holiday_type='company' AND mode_company_id IS NOT NULL))", "The employee, department, company or employee category of this request is missing. Please make sure that your user login is linked to an employee."), - ('duration_check', "CHECK((allocation_type != 'regular'))", "The duration must be greater than 0."), ] \ No newline at end of file