Commit b0c82b31 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: ensore project has a currency before generating an open order

parent 8f782d88
...@@ -164,6 +164,11 @@ if instance_tree.getCausalityState() == 'diverged': ...@@ -164,6 +164,11 @@ if instance_tree.getCausalityState() == 'diverged':
return return
#raise NotImplementedError('No Software Product defined for %s' % instance_tree.getRelativeUrl()) #raise NotImplementedError('No Software Product defined for %s' % instance_tree.getRelativeUrl())
currency = instance_tree.getFollowUpValue().Project_getAccountingCurrency()
if currency is None:
storeWorkflowComment(instance_tree, "No currency found")
return
#assert instance_tree.getPortalType() in service.getRequiredAggregatedPortalTypeList() #assert instance_tree.getPortalType() in service.getRequiredAggregatedPortalTypeList()
# Sale Supply price do not match Open Order # Sale Supply price do not match Open Order
......
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