From 905ee135ad69e3515b5b65a10ff7b473be3dd767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Wed, 5 Aug 2026 17:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=B9=B4=E5=81=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_holiday/views/hr_leave_batch.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yuthon_holiday/views/hr_leave_batch.xml b/yuthon_holiday/views/hr_leave_batch.xml index 08911faae..46c5a2f98 100644 --- a/yuthon_holiday/views/hr_leave_batch.xml +++ b/yuthon_holiday/views/hr_leave_batch.xml @@ -154,10 +154,10 @@ '&', ('has_valid_allocation', '=', True), '|', - ('allows_negative', '=', True), - '&', - ('virtual_remaining_leaves', '>', 0), - ('allows_negative', '=', False), + ('allows_negative', '=', True), + '&', + (1, '=', 1), + ('allows_negative', '=', False), ]" context="{'employee_id': employee_id}" options="{'no_create': True, 'no_open': True, 'request_type': 'leave'}"