From aa2cb8ee04690768a20c03e8ec52aca1c84550b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Sat, 7 Mar 2026 20:54:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A4=90=E9=A5=AE=E6=94=B6=E9=9B=86=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_catering/models/yuthon_catering.py | 7 +++++-- yuthon_catering/views/yuthon_catering.xml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/yuthon_catering/models/yuthon_catering.py b/yuthon_catering/models/yuthon_catering.py index e45683055..932765730 100644 --- a/yuthon_catering/models/yuthon_catering.py +++ b/yuthon_catering/models/yuthon_catering.py @@ -294,6 +294,8 @@ class YuthonCatering(models.Model): 'lunch': True, }) + + def batch_confirm_catering(self): records = self.env['yuthon.catering'].browse(self._context.get('active_ids', [])) records.write({ @@ -303,9 +305,9 @@ class YuthonCatering(models.Model): }) def fill_march6_missing_catering(self): - """表3月6日缺失员工的餐饮收集任务数据""" + """表3月9日缺失员工的餐饮收集任务数据""" from datetime import date as date_cls - target_date = date_cls(2026, 3, 6) + target_date = date_cls(2026, 3, 9) conf_records = self.env['yuthon.catering.conf'].search([]) if not conf_records: return @@ -340,6 +342,7 @@ class YuthonCatering(models.Model): (2026, 1), (2026, 2), ] + all_dates = [] for y, m in target_months: d = date_cls(y, m, 1) diff --git a/yuthon_catering/views/yuthon_catering.xml b/yuthon_catering/views/yuthon_catering.xml index 6a138d84c..8c09bb4ec 100644 --- a/yuthon_catering/views/yuthon_catering.xml +++ b/yuthon_catering/views/yuthon_catering.xml @@ -13,7 +13,7 @@