Commit 9fa31588 authored by Jérome Perrin's avatar Jérome Perrin

sadly, we need a manager proxy role, because one might be able to restart an...

sadly, we need a manager proxy role, because one might be able to restart an accounting period but not to delete an accounting transaction

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43597 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 995da365
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>assert context.getSimulationState() == \'started\'\n <value> <string>assert context.getSimulationState() == \'started\' and context.getPortalType() == \'Accounting Period\'\n
id_list = []\n id_list = []\n
for balance_transaction in context.getCausalityRelatedValueList(\n for balance_transaction in context.getCausalityRelatedValueList(\n
portal_type=\'Balance Transaction\'):\n portal_type=\'Balance Transaction\'):\n
...@@ -65,6 +65,14 @@ if id_list:\n ...@@ -65,6 +65,14 @@ if id_list:\n
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>AccountingPeriod_deleteBalanceTransaction</string> </value> <value> <string>AccountingPeriod_deleteBalanceTransaction</string> </value>
......
1448 1451
\ 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