Commit 69ae93db authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: configure trade_condition_type on the Sale Trade Condition

parent e68a9690
...@@ -157,6 +157,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin): ...@@ -157,6 +157,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin):
sale_trade_condition = self.portal.sale_trade_condition_module.newContent( sale_trade_condition = self.portal.sale_trade_condition_module.newContent(
portal_type="Sale Trade Condition", portal_type="Sale Trade Condition",
reference="Tax/payment for: %s" % currency.getRelativeUrl(), reference="Tax/payment for: %s" % currency.getRelativeUrl(),
trade_condition_type="default",
# XXX hardcoded # XXX hardcoded
specialise="business_process_module/slapos_ultimate_business_process", specialise="business_process_module/slapos_ultimate_business_process",
price_currency_value=currency, price_currency_value=currency,
...@@ -186,6 +187,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin): ...@@ -186,6 +187,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin):
sale_trade_condition = self.portal.sale_trade_condition_module.newContent( sale_trade_condition = self.portal.sale_trade_condition_module.newContent(
portal_type="Sale Trade Condition", portal_type="Sale Trade Condition",
reference=title, reference=title,
trade_condition_type="virtual_master",
specialise_value=sale_trade_condition, specialise_value=sale_trade_condition,
source_value=seller_organisation, source_value=seller_organisation,
source_section_value=source_section_value, source_section_value=source_section_value,
......
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