提交 a25cb2c5 authored 作者: 刘擎阳's avatar 刘擎阳

1.优化

上级 b1610f34
...@@ -530,9 +530,9 @@ class WarningConfig(models.Model): ...@@ -530,9 +530,9 @@ class WarningConfig(models.Model):
('bl_date', '>=', start_date), ('bl_date', '>=', start_date),
('state', '!=', 'done') ('state', '!=', 'done')
]) ])
bl_objs = self.env['cc.bl'].sudo().search([ # bl_objs = self.env['cc.bl'].sudo().search([
('id', '=', 71) # ('id', '=', 71)
]) # ])
if not config_objs or not bl_objs: if not config_objs or not bl_objs:
return return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论