Commit 8e206c96 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Added source_trade and destination_trade which is used to document who is the

end supplier or customer of the current movement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4186 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65fe1bb1
...@@ -420,6 +420,68 @@ class Arrow: ...@@ -420,6 +420,68 @@ class Arrow:
'acquisition_accessor_id' : 'getTitle', 'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None, 'acquisition_depends' : None,
'mode' : 'w' }, 'mode' : 'w' },
# Source trade reference
{ 'id' : 'source_trade_title',
'description' : 'The title of the source trade of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_trade',),
'acquisition_portal_type' : Expression('python: portal.getPortalNodeTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceProjectTitle', ),
'mode' : 'w' },
{ 'id' : 'source_trade_id',
'description' : 'The id of the source trade of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_trade',),
'acquisition_portal_type' : Expression('python: portal.getPortalNodeTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceProjectId', ),
'mode' : 'w' },
{ 'id' : 'source_trade_relative_url',
'description' : 'The titles of the source trade of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_trade',),
'acquisition_portal_type' : Expression('python: portal.getPortalNodeTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceProjectRelativeUrl', ),
'mode' : 'w' },
# Destination trade reference
{ 'id' : 'destination_trade_title',
'description' : 'The title of the destination trade of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_trade',),
'acquisition_portal_type' : Expression('python: portal.getPortalNodeTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationProjectTitle', ),
'mode' : 'w' },
{ 'id' : 'destination_trade_id',
'description' : 'The id of the destination trade of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_trade',),
'acquisition_portal_type' : Expression('python: portal.getPortalNodeTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationProjectId', ),
'mode' : 'w' },
{ 'id' : 'destination_trade_relative_url',
'description' : 'The titles of the destination trade of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_trade',),
'acquisition_portal_type' : Expression('python: portal.getPortalNodeTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationProjectRelativeUrl', ),
'mode' : 'w' },
# Source function reference # Source function reference
{ 'id' : 'source_function_title', { 'id' : 'source_function_title',
'description' : 'The title of the source function of this movement', 'description' : 'The title of the source function of this movement',
...@@ -675,6 +737,7 @@ class Arrow: ...@@ -675,6 +737,7 @@ class Arrow:
'source_decision', 'destination_decision', 'source_decision', 'destination_decision',
'source_administration', 'destination_administration', 'source_administration', 'destination_administration',
'source_payment', 'destination_payment', 'source_payment', 'destination_payment',
'source_trade', 'destination_trade',
'source_function', 'destination_function', 'source_function', 'destination_function',
'source_project', 'destination_project', 'source_project', 'destination_project',
'source_budget', 'destination_budget', 'source_budget', 'destination_budget',
......
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