[FIX] ir_actions: avoid crash if action runs on a void set of ids

This commit is contained in:
Thibault Delavallée
2017-01-12 12:31:08 +01:00
parent 289b7cb41c
commit aacaa7003e
+1
View File
@@ -659,6 +659,7 @@ class IrActionsServer(models.Model):
:return: an action_id to be executed, or False is finished correctly without
return action
"""
res = False
for action in self:
eval_context = self._get_eval_context(action)
if hasattr(self, 'run_action_%s_multi' % action.state):