Commit 95797b95 authored by Jérome Perrin's avatar Jérome Perrin

validate rules (that's why we were not getting ui tests results)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25365 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39a4ab24
......@@ -55,6 +55,11 @@
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
\n
# validate rules\n
for rule in portal.portal_rules.objectValues():\n
if rule.getReference() != \'default_payment_rule\':\n
rule.validate()\n
\n
# open all accounts\n
for account in portal.account_module.objectValues():\n
if account.getValidationState() != \'validated\':\n
......@@ -143,6 +148,7 @@ return "Reset Successfully."\n
<string>context</string>
<string>portal</string>
<string>_getiter_</string>
<string>rule</string>
<string>account</string>
<string>entity</string>
<string>pref</string>
......
111
\ No newline at end of file
112
\ 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