Commit 247fe1c0 authored by Jean-Paul Smets's avatar Jean-Paul Smets

error_message improved (more information about what is wrong)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@146 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eedb8cc7
......@@ -37,9 +37,9 @@ for movement in movement_list :
movement.getTargetQuantity() != 0 and movement.getPrice() == '' or \
movement.getTargetQuantity() != 0 and movement.getPrice() is None :
if len(error_message) == 0 :
error_message += 'Produit ou variante sans prix'
error_message += 'Prix manquant: produit %s ou variante %s' % (movement.getResource(), movement.getVariationText())
else :
error_message += ' - Produit ou variante sans prix'
error_message += ' - Prix manquant: produit %s ou variante %s' % (movement.getResource(), movement.getVariationText())
break
return error_message
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