Commit 079d08c7 authored by Jérome Perrin's avatar Jérome Perrin

copy variation category list from the invoice lines to simulation movement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3834 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8b712f4c
......@@ -103,7 +103,6 @@ class DeliveryRule(Rule):
# Our delivery_value is already related
# to another simulation movement
# Delete ourselve
# movement.flushActivity(invoke=0)
# XXX Make sure this is not deleted if already in delivery
applied_rule._delObject(movement.getId())
else:
......@@ -133,6 +132,8 @@ class DeliveryRule(Rule):
# XXX Do we need to copy the quantity
# Why not the resource, the variation,...
quantity=delivery_movement.getQuantity(),
variation_category_list=\
delivery_movement.getVariationCategoryList(),
delivery_ratio=1,
deliverable=1)
except AttributeError:
......
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