From ed745368dbe2afadf19babad28d1e7a8f352d428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Mon, 20 Apr 2026 11:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_employee/models/yuthon_medical_manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_employee/models/yuthon_medical_manage.py b/yuthon_hr_employee/models/yuthon_medical_manage.py index 20cba9a2e..d1445e1ce 100644 --- a/yuthon_hr_employee/models/yuthon_medical_manage.py +++ b/yuthon_hr_employee/models/yuthon_medical_manage.py @@ -34,10 +34,10 @@ class YuthonMedicalManage(models.Model): for record in self: record.termination_date = record.employee_id.contract_id.termination_date - @api.depends('this_year_quota', 'this_year_usage', 'last_year_remaining') + @api.depends('this_year_quota', 'this_year_usage', 'last_year_balance') def _compute_current_year_remaining(self): for record in self: - record.current_year_remaining = record.this_year_quota + record.last_year_remaining - record.this_year_usage + record.current_year_remaining = record.this_year_quota + record.last_year_balance - record.this_year_usage def update_remainder_the_year(self): soong_ids = self.env["yuthon.medical.manage"].browse(