From acd98d9096bf694cfdca4e0b87ec6313f90c24f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 6 Aug 2014 17:30:36 +0200
Subject: [PATCH] Explanation Cache: add debugging hints

---
 product/ERP5/ExplanationCache.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/product/ERP5/ExplanationCache.py b/product/ERP5/ExplanationCache.py
index 2c5cb1576e..38e0bd5f66 100644
--- a/product/ERP5/ExplanationCache.py
+++ b/product/ERP5/ExplanationCache.py
@@ -325,6 +325,8 @@ class ExplanationCache:
     try:
       result = cache[reference_date_key]
       if result is self: # use self as marker to detect infinite recursion
+        __traceback_info__ = (business_process.getPath(), trade_phase,
+                              reference_date_method_id, delay_mode)
         raise ValueError('No reference date is defined, probably due to missing Trade Model Path in Business Process')
       return result
     except KeyError:
-- 
2.30.9