Commit 6e7a2700 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

if business path returns nothing for a category, do not override the category with an empty list.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34493 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1fcdf224
...@@ -103,8 +103,6 @@ class MovementGeneratorMixin: ...@@ -103,8 +103,6 @@ class MovementGeneratorMixin:
base_category, context=movement) base_category, context=movement)
if category_url not in ['', None]: if category_url not in ['', None]:
property_dict[base_category] = [category_url] property_dict[base_category] = [category_url]
else:
property_dict[base_category] = []
# Amount # Amount
if business_path.getQuantity(): if business_path.getQuantity():
property_dict['quantity'] = business_path.getQuantity() property_dict['quantity'] = business_path.getQuantity()
......
...@@ -566,8 +566,6 @@ class Rule(Predicate, XMLObject): ...@@ -566,8 +566,6 @@ class Rule(Predicate, XMLObject):
base_category, context=movement) base_category, context=movement)
if category_url not in ['', None]: if category_url not in ['', None]:
property_dict['%s_list' % base_category] = [category_url] property_dict['%s_list' % base_category] = [category_url]
else:
property_dict['%s_list' % base_category] = []
# Amount # Amount
property_dict['quantity'] = business_path.getExpectedQuantity(movement) property_dict['quantity'] = business_path.getExpectedQuantity(movement)
......
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