Commit 5596261a authored by Ivan Tyagov's avatar Ivan Tyagov

Setup required configuration.

parent 81d0116b
......@@ -45,7 +45,7 @@
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">How-to Sale Order / Packing List / Invoices / Payment (expected failure)</td></tr>\n
<tr><td rowspan="1" colspan="3">How-to Sale Order / Packing List / Invoices / Payment</td></tr>\n
</thead><tbody>\n
\n
<span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/init_test_environment">init</span>\n
......@@ -711,11 +711,11 @@ Wait for activities</span>\n
<td>//select[@name="select_action"]</td>\n
<td>Create Related Payment</td>\n
</tr>\n
<span tal:condition="python:\'51 - Bank\' in here.Zuite_getCashAccountRelatedFormattedTitleList()">\n
<span tal:condition="python:\'5 - Bank\' in here.Zuite_getCashAccountRelatedFormattedTitleList()">\n
<tr>\n
<td>select</td>\n
<td>//select[@name="field_your_node"]</td>\n
<td>51 - Bank</td>\n
<td>5 - Bank</td>\n
</tr>\n
</span>\n
<span tal:condition="python:\'512 - Banques\' in here.Zuite_getCashAccountRelatedFormattedTitleList()">\n
......
......@@ -57,9 +57,19 @@ portal = context.getPortalObject()\n
howto_dict = context.Zuite_getHowToInfo()\n
isTransitionPossible = portal.portal_workflow.isTransitionPossible\n
\n
# validate rules\n
for account in context.account_module.objectValues():\n
if isTransitionPossible(account, \'validate\'):\n
account.validate()\n
\n
# validate default business process\n
business_process = context.portal_catalog.getResultValue(portal_type=\'Business Process\',\n
reference=\'erp5_default_business_process\')\n
business_process.account_debit_path.setTestTalesExpression(\'python: True\')\n
business_process.account_credit_path.setTestTalesExpression(\'python: True\')\n
business_process.account_debit_path.setSourceValue(context.account_module.goods_sales)\n
business_process.account_credit_path.setSourceValue(context.account_module.receivable)\n
\n
if isTransitionPossible(business_process, \'validate\'):\n
business_process.validate()\n
\n
......
775
\ No newline at end of file
776
\ No newline at end of file
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