[Erp5-report] r43597 jerome - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_s...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 23 10:57:26 CET 2011


Author: jerome
Date: Wed Feb 23 10:57:25 2011
New Revision: 43597

URL: http://svn.erp5.org?rev=43597&view=rev
Log:
sadly, we need a manager proxy role, because one might be able to restart an accounting period but not to delete an accounting transaction

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_deleteBalanceTransaction.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_deleteBalanceTransaction.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_deleteBalanceTransaction.xml?rev=43597&r1=43596&r2=43597&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_deleteBalanceTransaction.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_deleteBalanceTransaction.xml [utf8] Wed Feb 23 10:57:25 2011
@@ -50,7 +50,7 @@
         </item>
         <item>
             <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
 for balance_transaction in context.getCausalityRelatedValueList(\n
                      portal_type=\'Balance Transaction\'):\n
@@ -66,6 +66,14 @@ if id_list:\n
             <value> <string></string> </value>
         </item>
         <item>
+            <key> <string>_proxy_roles</string> </key>
+            <value>
+              <tuple>
+                <string>Manager</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
             <key> <string>id</string> </key>
             <value> <string>AccountingPeriod_deleteBalanceTransaction</string> </value>
         </item>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=43597&r1=43596&r2=43597&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Wed Feb 23 10:57:25 2011
@@ -1 +1 @@
-1448
\ No newline at end of file
+1451
\ No newline at end of file



More information about the Erp5-report mailing list