Commit 93fbcdbb authored by Jérome Perrin's avatar Jérome Perrin

fixup! Alarm: new option to solve automatically

This new property will not be available until we upgrade
erp5_property_sheets, so we have to use a backword compatible accessor.
parent 945c2a36
......@@ -139,7 +139,7 @@ class AlarmTool(TimerServiceMixin, BaseTool):
if alarm.isActive() or not alarm.isEnabled():
# do nothing if already active, or not enabled
continue
if alarm.isAutomaticSolve():
if alarm.getProperty('automatic_solve'):
alarm.solve()
else:
alarm.activeSense()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment