添加功能
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user