Commit f913ce84 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: get price from sale supply

parent 311d34f7
...@@ -246,12 +246,18 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin): ...@@ -246,12 +246,18 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
) )
software_product.validate() software_product.validate()
sale_supply = self.portal.sale_supply_module.newContent(
portal_type="Sale Supply",
destination_project_value=project,
price_currency="currency_module/EUR"
)
# XXX Put price in sale supply module # XXX Put price in sale supply module
sale_trade_condition.newContent( sale_supply.newContent(
portal_type="Sale Supply Line", portal_type="Sale Supply Line",
base_price=9, base_price=9,
resource_value=software_product resource_value=software_product
) )
sale_supply.validate()
# some preparation # some preparation
self.logout() self.logout()
...@@ -379,11 +385,12 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin): ...@@ -379,11 +385,12 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
# 7 simulation mvt # 7 simulation mvt
# 1 software product # 1 software product
# 1 sale trace condition, 1 supply line # 1 sale trace condition
# 1 supply, 1 supply line
# 1 open order line / 1 cell # 1 open order line / 1 cell
related_object_list = project.Base_getRelatedObjectList(**{'category.category_strict_membership': 1}) related_object_list = project.Base_getRelatedObjectList(**{'category.category_strict_membership': 1})
assert len(related_object_list) == 25, [x.getRelativeUrl() for x in related_object_list] assert len(related_object_list) == 26, [x.getRelativeUrl() for x in related_object_list]
self.stepcheckERP5Consistency() self.stepcheckERP5Consistency()
......
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