Commit 1e3af89d authored by Romain Courteaud's avatar Romain Courteaud

Made the OrderBuilder compatible with the option variation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3489 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f44504e8
......@@ -384,14 +384,16 @@ class OrderBuilder(XMLObject, Amount, Predicate):
break
if object_to_update is None:
# create a new cell
cell_key = movement.getVariationCategoryList()
cell_key = movement.getVariationCategoryList(
omit_option_base_category=1)
if not delivery_line.hasCell(base_id=base_id, *cell_key):
cell = delivery_line.newCell(base_id=base_id,\
portal_type=self.getDeliveryCellPortalType(), *cell_key)
cell._edit(category_list=cell_key,
vcl = movement.getVariationCategoryList()
cell._edit(category_list=vcl,
# XXX hardcoded value
mapped_value_property_list=['quantity', 'price'],
membership_criterion_category_list=cell_key,
membership_criterion_category_list=vcl,
membership_criterion_base_category_list=movement.\
getVariationBaseCategoryList())
object_to_update = cell
......
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