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 @@