Commit a6c987e0 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: no need to use hardcoded organisation...

too check the bank account obj
parent 735249a3
...@@ -166,6 +166,9 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin): ...@@ -166,6 +166,9 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
portal_type="Person", portal_type="Person",
default_email_coordinate_text='a@example.org', default_email_coordinate_text='a@example.org',
) )
organisation = self.portal.organisation_module.newContent(
portal_type="Organisation"
)
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",
...@@ -201,8 +204,8 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin): ...@@ -201,8 +204,8 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
portal_type="Open Sale Order", portal_type="Open Sale Order",
ledger=hosting_subscription.getLedger(), ledger=hosting_subscription.getLedger(),
destination_project_value=project, destination_project_value=project,
source='organisation_module/slapos', source_value=organisation,
source_section='organisation_module/slapos', source_section_value=organisation,
destination_value=person, destination_value=person,
destination_section_value=person, destination_section_value=person,
destination_decision_value=person, destination_decision_value=person,
......
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