Commit 0a20e879 authored by Aurel's avatar Aurel

DMS, PDM et CRM preference can only be modified by manager


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21103 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d25bbdfc
...@@ -37,41 +37,48 @@ class CustomerRelationPreference: ...@@ -37,41 +37,48 @@ class CustomerRelationPreference:
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_campaign_resource', { 'id' : 'preferred_campaign_resource',
'description' : 'Preferred resources to count the different kinds of Events', 'description' : 'Preferred resources to count the different kinds of Events',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_sale_opportunity_resource', { 'id' : 'preferred_sale_opportunity_resource',
'description' : 'Preferred resources to count the different kinds of Events', 'description' : 'Preferred resources to count the different kinds of Events',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_meeting_resource', { 'id' : 'preferred_meeting_resource',
'description' : 'Preferred resources to count the different kinds of Events', 'description' : 'Preferred resources to count the different kinds of Events',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_support_request_resource', { 'id' : 'preferred_support_request_resource',
'description' : 'Preferred resources to count the different kinds of Events', 'description' : 'Preferred resources to count the different kinds of Events',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_event_assessment_form_id', { 'id' : 'preferred_event_assessment_form_id',
'description' : 'Preferred forms to use in the assessing of ticket events.', 'description' : 'Preferred forms to use in the assessing of ticket events.',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_event_sender_email', { 'id' : 'preferred_event_sender_email',
'description' : 'Preferred email for replies sent through the CRM system.', 'description' : 'Preferred email for replies sent through the CRM system.',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
) )
...@@ -36,41 +36,49 @@ class DocumentPreference: ...@@ -36,41 +36,49 @@ class DocumentPreference:
'description' : 'Address of a server for converting docs (ip or domain)', 'description' : 'Address of a server for converting docs (ip or domain)',
'type' : 'string', 'type' : 'string',
'preference' : 1, 'preference' : 1,
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_ooodoc_server_port_number', { 'id' : 'preferred_ooodoc_server_port_number',
'description' : 'Port number of a server for converting docs', 'description' : 'Port number of a server for converting docs',
'type' : 'int', 'type' : 'int',
'preference' : 1, 'preference' : 1,
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_document_reference_regular_expression', { 'id' : 'preferred_document_reference_regular_expression',
'description' : 'A regular expression to find and verify doc references', 'description' : 'A regular expression to find and verify doc references',
'type' : 'string', 'type' : 'string',
'preference' : 1, 'preference' : 1,
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_document_file_name_regular_expression', { 'id' : 'preferred_document_file_name_regular_expression',
'description' : 'A regular expression to parse file names', 'description' : 'A regular expression to parse file names',
'type' : 'string', 'type' : 'string',
'preference' : 1, 'preference' : 1,
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_document_reference_method_id', { 'id' : 'preferred_document_reference_method_id',
'description' : 'Function for parsing, finding and verifying doc reference', 'description' : 'Function for parsing, finding and verifying doc reference',
'type' : 'string', 'type' : 'string',
'preference' : 1, 'preference' : 1,
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_document_ingestion_email_notification', { 'id' : 'preferred_document_ingestion_email_notification',
'description' : 'None - always, "always", "problem (only if problem), "never"', # XXX-JPS this is not a description 'description' : 'None - always, "always", "problem (only if problem), "never"', # XXX-JPS this is not a description
'type' : 'selection', 'type' : 'selection',
'select_variable' : 'getPreferredDocumentIngestionEmailNotificationSelectionList', 'select_variable' : 'getPreferredDocumentIngestionEmailNotificationSelectionList',
'write_permission': 'Manage properties',
'preference' : 1, 'preference' : 1,
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_document_email_ingestion_address', { 'id' : 'preferred_document_email_ingestion_address',
'description' : 'Email ingestion address', 'description' : 'Email ingestion address',
'type' : 'string', 'type' : 'string',
'write_permission': 'Manage properties',
'preference' : 1, 'preference' : 1,
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_document_classification', { 'id' : 'preferred_document_classification',
'description' : 'Preffered classification policy for newly created documents', 'description' : 'Preffered classification policy for newly created documents',
'type' : 'string', 'type' : 'string',
'write_permission': 'Manage properties',
'preference' : 1, 'preference' : 1,
'mode' : '' }, 'mode' : '' },
# XXX-JPS. This is not a real property - it is somehow a hack. # XXX-JPS. This is not a real property - it is somehow a hack.
...@@ -79,6 +87,7 @@ class DocumentPreference: ...@@ -79,6 +87,7 @@ class DocumentPreference:
'description' : 'List of possible values for preferred_document_ingestion_email_notification', 'description' : 'List of possible values for preferred_document_ingestion_email_notification',
'type' : 'tokens', 'type' : 'tokens',
'default' : ['always','problem','never'], 'default' : ['always','problem','never'],
'write_permission': 'Manage properties',
'mode' : 'w'}, 'mode' : 'w'},
) )
......
...@@ -39,53 +39,62 @@ class ProductDataPreference: ...@@ -39,53 +39,62 @@ class ProductDataPreference:
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_product_optional_variation_base_category', { 'id' : 'preferred_product_optional_variation_base_category',
'description' : 'Defines optional base categories axes in products variations', 'description' : 'Defines optional base categories axes in products variations',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_product_individual_variation_base_category', { 'id' : 'preferred_product_individual_variation_base_category',
'description' : 'Defines individual base categories axes in products variations', 'description' : 'Defines individual base categories axes in products variations',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_component_variation_base_category', { 'id' : 'preferred_component_variation_base_category',
'description' : 'Defines base categories axes in components variations', 'description' : 'Defines base categories axes in components variations',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_component_optional_variation_base_category', { 'id' : 'preferred_component_optional_variation_base_category',
'description' : 'Defines optional base categories axes in components variations', 'description' : 'Defines optional base categories axes in components variations',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_component_individual_variation_base_category', { 'id' : 'preferred_component_individual_variation_base_category',
'description' : 'Defines individual base categories axes in components variations', 'description' : 'Defines individual base categories axes in components variations',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_service_variation_base_category', { 'id' : 'preferred_service_variation_base_category',
'description' : 'Defines base categories axes in services variations', 'description' : 'Defines base categories axes in services variations',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_service_optional_variation_base_category', { 'id' : 'preferred_service_optional_variation_base_category',
'description' : 'Defines optional base categories axes in services variations', 'description' : 'Defines optional base categories axes in services variations',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'preferred_service_individual_variation_base_category', { 'id' : 'preferred_service_individual_variation_base_category',
'description' : 'Defines individual base categories axes in services variations', 'description' : 'Defines individual base categories axes in services variations',
'type' : 'lines', 'type' : 'lines',
'preference' : 1, 'preference' : 1,
'default' : [], 'default' : [],
'write_permission': 'Manage properties',
'mode' : '' }, 'mode' : '' },
) )
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