[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:
parent
d4356263f2
commit
cf0be50f04
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue