Commit 6118c4ed authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use different resources for different order lines to have two unique simulation movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31887 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a26dd9e3
...@@ -1208,6 +1208,10 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -1208,6 +1208,10 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
self.resource_portal_type).newContent( self.resource_portal_type).newContent(
portal_type=self.resource_portal_type, portal_type=self.resource_portal_type,
title='Resource',) title='Resource',)
resource2 = self.portal.getDefaultModule(
self.resource_portal_type).newContent(
portal_type=self.resource_portal_type,
title='Resource2',)
currency = self.portal.currency_module.newContent( currency = self.portal.currency_module.newContent(
portal_type='Currency', portal_type='Currency',
title='Currency') title='Currency')
...@@ -1237,7 +1241,7 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -1237,7 +1241,7 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
quantity=5, quantity=5,
price=10, price=10,
description='The second line', description='The second line',
resource_value=resource,) resource_value=resource2,)
order.confirm() order.confirm()
transaction.commit() transaction.commit()
......
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