From 38047486e4aa935c18b24e1c5c72833a028b0ab0 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Wed, 4 Mar 2026 15:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A4=90=E9=A5=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_catering/models/yuthon_catering.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_catering/models/yuthon_catering.py b/yuthon_catering/models/yuthon_catering.py index 03160c528..65ffc3da7 100644 --- a/yuthon_catering/models/yuthon_catering.py +++ b/yuthon_catering/models/yuthon_catering.py @@ -26,8 +26,8 @@ class YuthonCatering(models.Model): ], default='unconfirmed', string='状态') def task_catering22(self): - catering_ids = self.env['yuthon.catering.conf'].search([('date', '=', fields.date.today())]) - for cat in catering_ids: + cat_ids = self.env["yuthon.confirm.users"].browse(self._context.get('active_ids', self._context.get('active_id'))) + for cat in cat_ids: cat.write({ 'breakfast': True, 'lunch': True,