[FIX] base_action_rule: prevent recursive rule trigger also when processing time...
[odoo/odoo.git] / addons / base_action_rule / base_action_rule.py
index 2488ebc..a6793e9 100644 (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