[Erp5-report] r9711 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 6 17:37:28 CEST 2006
Author: alex
Date: Wed Sep 6 17:37:27 2006
New Revision: 9711
URL: http://svn.erp5.org?rev=9711&view=rev
Log:
Allow to build a business template even is a workflow marked for deletion is
not currently present in the chain.
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=9711&r1=9710&r2=9711&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Wed Sep 6 17:37:27 2006
@@ -1236,7 +1236,8 @@
workflow_name = workflow[1:]
else:
workflow_name = workflow
- if workflow_name not in chain_dict['chain_%s' % portal_type]:
+ if workflow[0]!= '-' and \
+ workflow_name not in chain_dict['chain_%s' % portal_type]:
raise NotFound, 'workflow %s not found in chain for portal_type %s'\
% (workflow, portal_type)
if self._objects.has_key(portal_type):
More information about the Erp5-report
mailing list