添加功能

This commit is contained in:
李鹏宇
2025-12-18 15:29:01 +08:00
parent 7b23f31bc7
commit 5f9bf884e9
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ class YuthonWillTask(models.Model):
reminder_employees = self.employee_ids | self.employee_ids2
if not reminder_employees:
return
old_tasks = self.env['yuthon.dates.task'].search([('yuthon_will_task_id', '=', self.id)])
old_tasks = self.env['yuthon.dates.task'].search([('yuthon_will_task_id', '=', self.id), ('task_state', '=', 'to_do')])
if old_tasks:
old_tasks.unlink()
start_hour = float(self.request_hour_from)
@@ -21,10 +21,10 @@
<field name="arch" type="xml">
<search string="日程任务">
<field name="yuthon_will_task_id"/>
<group expand="0" string="Group By">
<filter name="task_state" string="状态" context="{'group_by':'task_state'}"/>
</group>
</search>
<group expand="0" string="Group By">
<filter name="task_state" string="状态" context="{'group_by':'task_state'}"/>
</group>
</field>
</record>
<record id="view_yuthon_dates_task_action" model="ir.actions.act_window">