Commit c7810e75 authored by Jérome Perrin's avatar Jérome Perrin

don't call workflow method if transition is not available

validate payment rule as well


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28079 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73d7f04d
...@@ -72,7 +72,7 @@ destination_site_title = "erp5_pdm_ui_test_destination_site_title"\n ...@@ -72,7 +72,7 @@ destination_site_title = "erp5_pdm_ui_test_destination_site_title"\n
\n \n
# validate rules\n # validate rules\n
for rule in portal.portal_rules.objectValues():\n for rule in portal.portal_rules.objectValues():\n
if rule.getReference() != \'default_payment_rule\':\n if rule.getValidationState() != \'validated\':\n
rule.validate()\n rule.validate()\n
\n \n
# Create resource\n # Create resource\n
......
15 16
\ No newline at end of file \ 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