Commit 7b1da274 authored by Romain Courteaud's avatar Romain Courteaud

Ease debugging


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@39393 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c144af4f
......@@ -692,7 +692,9 @@ class BusinessProcess(Path, XMLObject):
if not trade_phase:
trade_phase = amount.getTradePhase()
if not trade_phase:
raise ValueError("A trade_phase must be defined on the Amount or provided to getTradePhaseMovementList")
raise ValueError("%s: a trade_phase must be defined on the " \
"Amount or provided to getTradePhaseMovementList" %
amount.getRelativeUrl())
# Build a list of temp movements
from Products.ERP5Type.Document import newTempMovement
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment