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