Skip to content
Snippets Groups Projects
Commit cf0be50f authored by Olivier Dony's avatar Olivier Dony
Browse files

[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.
parent d4356263
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment