Commit 8045f3a3 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_panel_ui_test: Create Trade condition for manual accounting

parent 7f38cc0e
......@@ -108,6 +108,19 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
)
trade_condition.validate()
# Sale trade condition for Manual Accounting
manual_trade_condition = portal.sale_trade_condition_module.newContent(
portal_type="Sale Trade Condition",
reference="Manual Accounting for %s" % organisation.getTitle(),
trade_condition_type="default",
# XXX hardcoded
specialise="business_process_module/slapos_manual_accounting_business_process",
source_value=organisation,
source_section_value=organisation if (scenario == 'accounting') else None,
price_currency_value=currency,
)
manual_trade_condition.validate()
if scenario == 'accounting':
# Create trade condition for Deposit
......@@ -131,7 +144,7 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, step, scenario, customer_login,
base_price=24,
resource="service_module/slapos_virtual_master_subscription"
)
sale_supply.validate()
sale_supply.validate()
finally:
setSecurityManager(sm)
......
......@@ -25,4 +25,4 @@
</dictionary>
</pickle>
</record>
</ZopeData>
\ No newline at end of file
</ZopeData>
......@@ -25,4 +25,4 @@
</dictionary>
</pickle>
</record>
</ZopeData>
\ No newline at end of file
</ZopeData>
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