Commit 4a9e8a12 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Only build what is buildable. Invoke mixin rather than non existing class.

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37628 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2319b18
......@@ -123,7 +123,7 @@ class SimulatedDeliveryBuilder(BuilderMixin):
movement_list = select_method(**kw)
# XXX Use buildSQLQuery will be better
movement_list = [x for x in movement_list if \
x.getDeliveryValueList()==[]]
x.getDeliveryValueList()==[] and x.isBuildable()]
# XXX Add predicate test
# XXX FIXME Check that there is no double in the list
# Because we can't trust simulation_select_method
......@@ -150,7 +150,7 @@ class SimulatedDeliveryBuilder(BuilderMixin):
Create the relation between simulation movement
and delivery movement.
"""
GeneratedDeliveryBuilder._setDeliveryMovementProperties(
BuilderMixin._setDeliveryMovementProperties(
self, delivery_movement,
simulation_movement, property_dict,
update_existing_movement=update_existing_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