diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/cash.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/cash.xml new file mode 100644 index 0000000000000000000000000000000000000000..997c69bea12202c4582ba15f7336a291941bb94b --- /dev/null +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/cash.xml @@ -0,0 +1,114 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.Document.Category</string> + <string>Category</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>payment_mode/cash</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>cash</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Cash</string> </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <none/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>BTrees.Length</string> + <string>Length</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/check.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/check.xml new file mode 100644 index 0000000000000000000000000000000000000000..34db8e782636973ee8d03f7c6a7d668a7fc6d766 --- /dev/null +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_categories/payment_mode/check.xml @@ -0,0 +1,114 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Type.Document.Category</string> + <string>Category</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>payment_mode/check</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>check</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Category</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Check</string> </value> + </item> + <item> + <key> <string>uid</string> </key> + <value> + <none/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>BTrees.Length</string> + <string>Length</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <tuple> + <tuple> + <string>BTrees.OOBTree</string> + <string>OOBTree</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml new file mode 100644 index 0000000000000000000000000000000000000000..d326760b8e226307ad44676bfd8d62eb525ea857 --- /dev/null +++ b/bt5/erp5_accounting_ui_test/PathTemplateItem/portal_tests/accounting_zuite/accounting_transaction_zuite/test_accounting_transaction_module_create_related_payment.html.xml @@ -0,0 +1,252 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PageTemplates.ZopePageTemplate</string> + <string>ZopePageTemplate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<html>\n +<head><title>Test for Creating Payment Transactions related to some Invoices</title></head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="4">\n +Test for Creating Payment Transactions related to some Invoices\n +</td></tr>\n +<!-- XXX we do not need init method here ! -->\n +</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n +<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n +\n +<!-- Setup {{{ -->\n +<tr>\n + <td>open</td>\n + <td>${base_url}/AccountingZuite_markChanged</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>verifyTextPresent</td>\n + <td>Done.</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>open</td>\n + <td>${base_url}</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>selectAndWait</td>\n + <td>select_module</td>\n + <td>Accounting</td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- Select {{{ -->\n +<tr>\n + <td>clickAndWait</td>\n + <td>//button[@title=\'Show All\']</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>type</td>\n + <td>//tr[@id=\'listbox_search_line\']/td[4]/span/input</td>\n + <td>Sale Invoice Transaction</td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>listbox_select</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>listbox_record_number</td>\n + <td>2 record(s)</td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- select create payment action {{{ -->\n +<tr>\n + <td>selectAndWait</td>\n + <td>select_action</td>\n + <td>Create Related Payments</td>\n +</tr>\n +<tr>\n + <td>select</td>\n + <td>field_your_node</td>\n + <td>label=5 - Bank</td>\n +</tr>\n +<tr>\n + <td>select</td>\n + <td>field_your_payment_mode</td>\n + <td>label=Cash</td>\n +</tr>\n +<tr>\n + <td>select</td>\n + <td>field_your_payment</td>\n + <td>label=My default bank account</td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>document.forms[0].elements[\'Base_callDialogMethod:method\'][1]</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>assertPortalStatusMessage</td>\n + <td>Payments Creation for 2 on 2 Invoices in Progress</td>\n + <td></td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- show the dialog again, to check it remembers values {{{ -->\n +<tr>\n + <td>selectAndWait</td>\n + <td>select_action</td>\n + <td>Create Related Payments</td>\n +</tr>\n +<tr>\n + <td>assertValue</td>\n + <td>field_your_node</td>\n + <td>account_module/bank</td>\n +</tr>\n +<tr>\n + <td>assertValue</td>\n + <td>field_your_payment_mode</td>\n + <td>cash</td>\n +</tr>\n +<tr>\n + <td>assertValue</td>\n + <td>field_your_payment</td>\n + <td>organisation_module/my_organisation/my_bank</td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>Base_cancel:method</td>\n + <td></td>\n +</tr>\n +<!-- }}} -->\n +\n +<!-- Check accounting transactions are created {{{ -->\n +<tr>\n + <td>open</td>\n + <td>${base_url}/Zuite_waitForActivities</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td>Done.</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>open</td>\n + <td>${base_url}/accounting_module/view</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>//button[@title=\'Show All\']</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>verifyText</td>\n + <td>listbox_record_number</td>\n + <td>6 record(s)</td>\n +</tr>\n +<!-- }}} -->\n +\n +</tbody></table>\n +</body>\n +</html> <!-- vim: syntax=html foldmethod=marker\n +-->\n + + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>test_accounting_transaction_module_create_related_payment.html</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting_ui_test/bt/revision b/bt5/erp5_accounting_ui_test/bt/revision index a5c750feac4168f62cfd29aa62b4624f0a430cd5..368f89ceef179cc546403ac0d5ef1d0e4b340447 100644 --- a/bt5/erp5_accounting_ui_test/bt/revision +++ b/bt5/erp5_accounting_ui_test/bt/revision @@ -1 +1 @@ -27 \ No newline at end of file +28 \ No newline at end of file diff --git a/bt5/erp5_accounting_ui_test/bt/template_path_list b/bt5/erp5_accounting_ui_test/bt/template_path_list index 73c41b0454e63342464f2500a4fff0d071d97985..f43010b481d42b3746f99576851784daee86b21a 100644 --- a/bt5/erp5_accounting_ui_test/bt/template_path_list +++ b/bt5/erp5_accounting_ui_test/bt/template_path_list @@ -29,6 +29,8 @@ portal_categories/group/demo_group portal_categories/group/demo_group/** portal_categories/group/vendor portal_categories/group/vendor/** +portal_categories/payment_mode/cash +portal_categories/payment_mode/check portal_preferences/accounting_zuite_preference portal_tests/accounting_zuite portal_tests/accounting_zuite/** \ No newline at end of file