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(
self.resource_portal_type).newContent(
portal_type=self.resource_portal_type,
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(
portal_type='Currency',
title='Currency')
......@@ -1237,7 +1241,7 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
quantity=5,
price=10,
description='The second line',
resource_value=resource,)
resource_value=resource2,)
order.confirm()
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