From d36be0022869ec23c88b0848a20abad3e2aaa5d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Wed, 11 Jun 2025 15:18:39 +0800 Subject: [PATCH] 1 --- yuthon_hr_employee/models/yuthon_hr_employee.py | 3 +-- yuthon_will_task/__manifest__.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/yuthon_hr_employee/models/yuthon_hr_employee.py b/yuthon_hr_employee/models/yuthon_hr_employee.py index df117e5c1..a498aea12 100644 --- a/yuthon_hr_employee/models/yuthon_hr_employee.py +++ b/yuthon_hr_employee/models/yuthon_hr_employee.py @@ -380,8 +380,7 @@ class YuthonHrEmployee(models.Model): record.is_accum_salary = True if record.entry_date: - # if record.entry_date.year == fields.Date.today().year and record.entry_date.month == fields.Date.today().month: - if record.entry_date.year == 2025 and record.entry_date.month == 1: + if record.entry_date.year == fields.Date.today().year and record.entry_date.month == fields.Date.today().month: record.is_accum_salary = False @api.depends('open_start_time', 'interrupt_work_month') diff --git a/yuthon_will_task/__manifest__.py b/yuthon_will_task/__manifest__.py index a1fd1673c..cdcdc65cb 100644 --- a/yuthon_will_task/__manifest__.py +++ b/yuthon_will_task/__manifest__.py @@ -18,7 +18,6 @@ ], 'assets': { 'web.assets_backend': [ - # 'yuthon_will_task/static/scss/yuthon_will_task.scss', 'yuthon_will_task/static/src/js/task_create_button.js', 'yuthon_will_task/static/src/xml/task_create_button.xml', ],