diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml index 324cfd933f1e5d3f98c982b5c34ee62030693841..91b4288bbe79fc4c6ca994efce18ff184950dcf1 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/jump_active_accounting_pref.xml @@ -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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml index d85c14e05ddafc7a72763ec8118e9e287556d2d8..2f7ff206d625697af1079a8d30749afee4f89934 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Bank%20Account/transactions.xml @@ -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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/jump_active_accounting_pref.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/jump_active_accounting_pref.xml index c385f4387ae15b70bd05782de5507de52fab94f3..91b4288bbe79fc4c6ca994efce18ff184950dcf1 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/jump_active_accounting_pref.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/jump_active_accounting_pref.xml @@ -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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/transactions.xml index aeeefabdca600a307dcc7c910212e906ba96d627..ba1f1d8d608b92fc093cf412d6c565e971669840 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/transactions.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Cash%20Register/transactions.xml @@ -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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%20Card/transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%20Card/transactions.xml index d85c14e05ddafc7a72763ec8118e9e287556d2d8..2f7ff206d625697af1079a8d30749afee4f89934 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%20Card/transactions.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Credit%20Card/transactions.xml @@ -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> 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 4535097cb0262b2502e26dcaff11acef02442037..d58933ba512452e5fd2adfd8448d78f32248b8a7 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 @@ -93,7 +93,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF <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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml index a889126f6fbcafa4c8420544652d2a53fcf37b2a..7d029811f5f711e17815c3d653cbdbfc9618d4d9 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/jump_to_accounting.xml @@ -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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml index 93404abbaf4aadf0d74fea7aa55939249f05d5c8..0a9a7ad5d8647a1bdb8193f6723b9befd4d708a3 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Organisation/transactions.xml @@ -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> 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 bb70bec6d6fc446755b03027cdd6091a270a45da..be23d25fe844ee53d04eb0ea0b1b29edd296ef9b 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 @@ -93,7 +93,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF <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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml index 2bac8bf03d3b490ff2621757b45d6555b51bbbef..644264df914768da5c06bd8cb171b7d2e13a9bce 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/jump_to_accounting.xml @@ -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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml index 2113341329b80d8906b5b9f624f3d479ae64e59a..bd9687f1943247ae00904f60e0b88a6dcb80f354 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Person/transactions.xml @@ -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> diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml index aa91e61064b63fbf74031c413de000d0492cf31f..d234b4e5609cb8782aff9fa0afe3ef985f01ae27 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Preference/view_accounting.xml @@ -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> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 5be040fc33117d9056d5b46f38d9cea31753a3bd..12658c029b2b59c6ca9099a903df414d66fcd859 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -808 \ No newline at end of file +809 \ No newline at end of file