Commit 977de036 authored by Sebastien Robin's avatar Sebastien Robin

added source_advice and destination_advice


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5707 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69531dd0
......@@ -730,6 +730,68 @@ class Arrow:
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationTransportRelativeUrl', ),
'mode' : 'w' },
# Source advice, use for the consultant who helps taking the decision
{ 'id' : 'source_advice_title',
'description' : 'The title of the source advice of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_advice',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceAdviceTitle', ),
'mode' : 'w' },
{ 'id' : 'source_advice_id',
'description' : 'The id of the source advice of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_advice',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceAdviceId', ),
'mode' : 'w' },
{ 'id' : 'source_advice_relative_url',
'description' : 'The titles of the source advice of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_advice',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceAdviceRelativeUrl', ),
'mode' : 'w' },
# Destination advice
{ 'id' : 'destination_advice_title',
'description' : 'The title of the destination advice of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_advice',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationAdviceTitle', ),
'mode' : 'w' },
{ 'id' : 'destination_advice_id',
'description' : 'The id of the destination advice of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_advice',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationAdviceId', ),
'mode' : 'w' },
{ 'id' : 'destination_advice_relative_url',
'description' : 'The titles of the destination advice of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_advice',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationAdviceRelativeUrl', ),
'mode' : 'w' },
)
_categories = ( 'source', 'destination',
......@@ -741,6 +803,7 @@ class Arrow:
'source_function', 'destination_function',
'source_project', 'destination_project',
'source_transport', 'destination_transport',
'source_advice', 'destination_advice',
# Virtual categories
'source_region', 'destination_region',
)
......
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