Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
34dfe182
Commit
34dfe182
authored
Dec 16, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new simulation.
parent
971c0964
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
11 deletions
+24
-11
bt5/erp5_user_tutorial_ui_test/PathTemplateItem/portal_tests/user_tutorial_zuite/testHowToSaleOrder.xml
...m/portal_tests/user_tutorial_zuite/testHowToSaleOrder.xml
+5
-7
bt5/erp5_user_tutorial_ui_test/SkinTemplateItem/portal_skins/erp5_user_tutorial_ui_test/Zuite_setUpSaleOrderTest.xml
...s/erp5_user_tutorial_ui_test/Zuite_setUpSaleOrderTest.xml
+18
-3
bt5/erp5_user_tutorial_ui_test/bt/revision
bt5/erp5_user_tutorial_ui_test/bt/revision
+1
-1
No files found.
bt5/erp5_user_tutorial_ui_test/PathTemplateItem/portal_tests/user_tutorial_zuite/testHowToSaleOrder.xml
View file @
34dfe182
...
...
@@ -47,13 +47,6 @@
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
How-to Sale Order / Packing List / Invoices / Payment (expected failure)
</td></tr>
\n
</thead><tbody>
\n
<!--\n
<tr>\n
<td>assertTextPresent</td>\n
<td>SKIP TO RUN THIS TEST UNTIL THIS TEST BE REFACTORED TO USE NEW SIMULATION.</td>\n
<td></td>\n
</tr>\n
-->
\n
\n
<span
metal:use-macro=
"container/Zuite_viewTestMacroLibrary/macros/init_test_environment"
>
init
</span>
\n
\n
...
...
@@ -127,6 +120,11 @@
<td>
//select[@name="field_my_delivery_mode"]
</td>
\n
<td>
AIR
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
//input[@name="field_my_specialise_title"]
</td>
\n
<td>
erp5_default_business_process
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
//input[@name="field_my_destination_section_title"]
</td>
\n
...
...
bt5/erp5_user_tutorial_ui_test/SkinTemplateItem/portal_skins/erp5_user_tutorial_ui_test/Zuite_setUpSaleOrderTest.xml
View file @
34dfe182
...
...
@@ -57,6 +57,12 @@ portal = context.getPortalObject()\n
howto_dict = context.Zuite_getHowToInfo()\n
isTransitionPossible = portal.portal_workflow.isTransitionPossible\n
\n
# validate default business process\n
business_process = context.portal_catalog.getResultValue(portal_type=\'Business Process\',\n
reference=\'erp5_default_business_process\')\n
if isTransitionPossible(business_process, \'validate\'):\n
business_process.validate()\n
\n
# check if there is already the euro curency on the instance\n
currency = context.portal_catalog.getResultValue(portal_type=\'Currency\',\n
title=howto_dict[\'sale_howto_currency_title\'])\n
...
...
@@ -112,11 +118,20 @@ my_organisation.activate(\n
my_organisation.getPath(), \'immediateRecusriveReindexObject\', \'immediateReindexObject\')) \\\n
.Organisation_addConditionallyAccountingPeriod()\n
\n
rule = portal.portal_rules.searchFolder(reference=\'default_order_rule\',\n
for rule_reference in (\'default_delivering_rule\',\n
\'default_delivery_rule\',\n
\'default_accounting_transaction_rule\',\n
\'default_trade_model_rule\',\n
\'default_payment_rule\',\n
\'default_order_rule\',\n
\'default_invoice_transaction_rule\',\n
\'default_invoicing_rule\',\n
\'default_invoice_rule\',):\n
rule = portal.portal_rules.searchFolder(reference=rule_reference,\n
sort_on=\'version\',\n
sort_order=\'descending\')[0].getObject()\n
if isTransitionPossible(rule, \'validate\'):\n
rule.validate()\n
if isTransitionPossible(rule, \'validate\'):\n
rule.validate()\n
\n
# Clear cache\n
portal.portal_caches.clearAllCache()\n
...
...
bt5/erp5_user_tutorial_ui_test/bt/revision
View file @
34dfe182
772
\ No newline at end of file
773
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment