Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Aurélien Vermylen
erp5
Commits
77341a89
Commit
77341a89
authored
Apr 10, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support runnning on an instance configured for SMB
parent
74c41344
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionList.xml
..._test/AccountingZuite_createAccountingTransactionList.xml
+14
-11
bt5/erp5_accounting_ui_test/bt/revision
bt5/erp5_accounting_ui_test/bt/revision
+1
-1
No files found.
bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionList.xml
View file @
77341a89
...
...
@@ -50,16 +50,22 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from DateTime import DateTime\n
<value>
<string
encoding=
"cdata"
>
<![CDATA[
from DateTime import DateTime\n
\n
# params\n
section_title = \'My Organisation\'\n
business_process = \'business_process_module/erp5_default_business_process\'\n
portal = context.getPortalObject()\n
accounting_module = portal.accounting_module\n
year = 2005\n
default_date = DateTime(year, 01, 01)\n
\n
business_process = portal.portal_catalog.getResultValue(\n
reference=(\'default_erp5_business_process\', # erp5_configurator\n
\'erp5_default_business_process\'), # erp5_simulation_test\n
portal_type=\'Business Process\').getRelativeUrl()\n
\n
# if the previous test didn\'t change input data, no need to recreate content\n
current_script_data_id = \'%s_month_count_%s_draft_%s_state_%s_payment_%s\' % (\n
month_count, add_draft_transactions, transaction_state,\n
...
...
@@ -77,6 +83,8 @@ if 1:\n
\'sale_packing_list_module\',\n
\'portal_simulation\', ]:\n
module = portal[module_id]\n
if len(module) >
200:\n
raise ValueError("Do not run this on production !!!")\n
module.manage_delObjects(list(module.objectIds()))\n
\n
def getAccountByTitle(title):\n
...
...
@@ -96,14 +104,7 @@ def getOrganisationByTitle(title):\n
return document_list[0]\n
section = getOrganisationByTitle(section_title)\n
\n
def getCurrencyByReference(reference):\n
document_list = [x.getObject().getRelativeUrl() for x in\n
portal.portal_catalog(portal_type=\'Currency\',\n
reference=reference)]\n
assert len(document_list) == 1, \\\n
\'%d currency with reference "%s"\' % (len(document_list), reference)\n
return document_list[0]\n
euro_resource = getCurrencyByReference(\'EUR\')\n
euro_resource = \'currency_module/euro\'\n
\n
def getBankAccountByTitle(title):\n
document_list = [x.getObject().getRelativeUrl() for x in\n
...
...
@@ -321,7 +322,9 @@ accounting_module.setProperty(\'current_content_script\',\n
# test depends on this\n
return "Accounting Transactions Created."\n
# vim: syntax=python\n
</string>
</value>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
...
...
bt5/erp5_accounting_ui_test/bt/revision
View file @
77341a89
189
\ No newline at end of file
190
\ 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