Commit 93fbcdbb by 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.
1 parent 945c2a36
...@@ -139,7 +139,7 @@ class AlarmTool(TimerServiceMixin, BaseTool): ...@@ -139,7 +139,7 @@ class AlarmTool(TimerServiceMixin, BaseTool):
if alarm.isActive() or not alarm.isEnabled(): if alarm.isActive() or not alarm.isEnabled():
# do nothing if already active, or not enabled # do nothing if already active, or not enabled
continue continue
if alarm.isAutomaticSolve(): if alarm.getProperty('automatic_solve'):
alarm.solve() alarm.solve()
else: else:
alarm.activeSense() alarm.activeSense()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!