From 57ac25fcb2d439385be908ca013b179fdae77bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 15 Jul 2008 15:27:26 +0000 Subject: [PATCH] Don't show grouping icon if the user is not allowed to access accounting module git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22478 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../grouping_reference_fast_input.xml | 22 +++++++++++++++++-- .../Person/grouping_reference_fast_input.xml | 22 +++++++++++++++++-- bt5/erp5_accounting/bt/revision | 2 +- 3 files changed, 41 insertions(+), 5 deletions(-) diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml index 31646fed21..775bf45df2 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/grouping_reference_fast_input.xml @@ -27,7 +27,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> @@ -36,7 +38,7 @@ <item> <key> <string>icon</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> </value> </item> <item> @@ -87,6 +89,22 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF </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.restrictedTraverse(\'accounting_module\', None) is not None</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> <pickle> <tuple> <global name="Expression" module="Products.CMFCore.Expression"/> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml index c222bb964e..183d1b52d0 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/grouping_reference_fast_input.xml @@ -27,7 +27,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> @@ -36,7 +38,7 @@ <item> <key> <string>icon</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> </value> </item> <item> @@ -87,6 +89,22 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF </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.restrictedTraverse(\'accounting_module\', None) is not None</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> <pickle> <tuple> <global name="Expression" module="Products.CMFCore.Expression"/> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index a42ae079d0..af718cd15f 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -725 \ No newline at end of file +726 \ No newline at end of file -- 2.30.9