Commit e28befaa authored by Jean-Paul Smets's avatar Jean-Paul Smets

one more test to handle correctly order_line without variation_category


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 247fe1c0
...@@ -54,11 +54,12 @@ else : ...@@ -54,11 +54,12 @@ else :
else : else :
error_message += ' - Ligne sans produit' error_message += ' - Ligne sans produit'
break break
if len(order_line.getVariationBaseCategoryList()) == 0 and len(order_line.getVariationCategoryList()) <> 0 : if not order_line.getVariationBaseCategoryList() in (None, []) and not order_line.getVariationCategoryList() in (None, []) :
if len(error_message) == 0 : if len(order_line.getVariationBaseCategoryList()) == 0 and len(order_line.getVariationCategoryList()) <> 0 :
error_message += 'Variantes mal dfinies' if len(error_message) == 0 :
else : error_message += 'Variantes mal dfinies'
error_message += ' - Variantes mal dfinies' else :
break error_message += ' - Variantes mal dfinies'
break
return error_message 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