Commit 9297a754 authored by Jérome Perrin's avatar Jérome Perrin

pass "plan" workflow transition automatically with workflow method if the user...

pass "plan" workflow transition automatically with workflow method if the user cannot perform user action transtition with his permissions (or if an validation error occurs)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4778 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 114a2fc2
...@@ -106,6 +106,7 @@ if sale_invoice.getSimulationState() == \'draft\' : \n ...@@ -106,6 +106,7 @@ if sale_invoice.getSimulationState() == \'draft\' : \n
except (ConflictError, RuntimeError), e : raise\n except (ConflictError, RuntimeError), e : raise\n
except Exception, e :\n except Exception, e :\n
LOG(\'Exception in plan_action\', e)\n LOG(\'Exception in plan_action\', e)\n
if sale_invoice.getSimulationState() == \'draft\' : \n
# call the workflow method, if the user cannot perform this operation.\n # call the workflow method, if the user cannot perform this operation.\n
sale_invoice.plan()\n sale_invoice.plan()\n
\n \n
...@@ -123,44 +124,44 @@ sale_invoice.activate(\n ...@@ -123,44 +124,44 @@ sale_invoice.activate(\n
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAA0AAAAYAAAACwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAA0AAAAYAAAACwAA
AHOrAQAAZAEAawAAbAEAfQIAAXQCAIkAAIcAAGQCAIYAAH0FAHQFAIgAAGQDAIMCAIMAAAF0BQCI AHPIAQAAZAEAawAAbAEAfQIAAXQCAIkAAIcAAGQCAIYAAH0FAHQFAIgAAGQDAIMCAIMAAAF0BQCI
AABkBACDAgCDAAB9BwB8BQBkBQB0BQCIAABkBgCDAgCDAAAWgwEAAXQFAHwHAGQEAIMCAIMAAH0I AABkBACDAgCDAAB9BwB8BQBkBQB0BQCIAABkBgCDAgCDAAAWgwEAAXQFAHwHAGQEAIM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B5dGhvbilzCAAA AQAAAHMtAAAAU2FsZUludm9pY2VUcmFuc2FjdGlvbl9wb3N0R2VuZXJhdGlvbkFjdGl2aXR5KAAA
ADxtb2R1bGU+AQAAAHMAAAAA</string> </value> AAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
......
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