Commit 9eaeb22a authored by Sebastien Robin's avatar Sebastien Robin

allow to specify the variation list

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8678 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65043264
......@@ -739,13 +739,15 @@ class TestERP5BankingMixin:
# variation_value : list of variation value (must be in the same order as variation_id
# quantity
for line in line_list:
variation_list = line.get('variation_list',None)
self.addCashLineToDelivery(inventory,
line['id'],
"Cash Inventory Line",
line['resource'],
line['variation_id'],
line['variation_value'],
line['quantity'],)
line['quantity'],
variation_list=variation_list)
# deliver the inventory
if inventory.getSimulationState()!='delivered':
inventory.deliver()
......
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