[Erp5-report] r24650 - in /erp5/trunk/bt5/erp5_accounting: ActionTemplateItem/portal_types/...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 20 14:39:30 CET 2008


Author: jerome
Date: Thu Nov 20 14:39:26 2008
New Revision: 24650

URL: http://svn.erp5.org?rev=24650&view=rev
Log:
actions related to accounting for non accouting portal type should be visible only if the user can *View* accounting module, not access.

Modified:
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/jump_active_accounting_pref.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/transactions.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%20Card/transactions.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml
    erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%2520Account/jump_active_accounting_pref.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%2520Account/transactions.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/jump_active_accounting_pref.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%2520Register/jump_active_accounting_pref.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/jump_active_accounting_pref.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/jump_active_accounting_pref.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -21,7 +21,9 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -74,4 +76,20 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/transactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%2520Register/transactions.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/transactions.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/transactions.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%20Card/transactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%2520Card/transactions.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%20Card/transactions.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%20Card/transactions.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -93,7 +93,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -93,7 +93,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -21,7 +21,9 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -74,4 +76,20 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml [utf8] Thu Nov 20 14:39:26 2008
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
+            <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=24650&r1=24649&r2=24650&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Thu Nov 20 14:39:26 2008
@@ -1,1 +1,1 @@
-808
+809




More information about the Erp5-report mailing list