[FIX] base_action_rule: prevent recursive rule trigger also when processing time-based rules

A safety guard already in place prevents the recursive
trigger of rules while another rule is being executed,
as a simple measure to prevent endless loops.
This guard was missing when processing time-based rules.
This commit is contained in:
Olivier Dony 2014-06-11 11:50:38 +02:00
parent d4356263f2
commit cf0be50f04
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ class base_action_rule(osv.osv):
action_dt = get_datetime(record_dt) + delay
if last_run <= action_dt < now:
try:
context = dict(context or {}, action=True)
self._process(cr, uid, action, [record.id], context=context)
except Exception:
import traceback