diff --git a/product/ERP5/PropertySheet/Arrow.py b/product/ERP5/PropertySheet/Arrow.py index 982a69f4a294313fdf4ecca24142b66b25b03390..635dee87bfd5a299509224336695d83ba4004362 100755 --- a/product/ERP5/PropertySheet/Arrow.py +++ b/product/ERP5/PropertySheet/Arrow.py @@ -420,11 +420,137 @@ class Arrow: 'acquisition_accessor_id' : 'getTitle', 'acquisition_depends' : None, 'mode' : 'w' }, - ) + # Source project reference + { 'id' : 'source_project_title', + 'description' : 'The title of the source project of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('source_project',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getTitle', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetSourceProjectTitle', ), + 'mode' : 'w' }, + { 'id' : 'source_project_id', + 'description' : 'The id of the source project of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('source_project',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getId', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetSourceProjectId', ), + 'mode' : 'w' }, + { 'id' : 'source_project_relative_url', + 'description' : 'The titles of the source project of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('source_project',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getRelativeUrl', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetSourceProjectRelativeUrl', ), + 'mode' : 'w' }, + # Destination project reference + { 'id' : 'destination_project_title', + 'description' : 'The title of the destination project of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('destination_project',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getTitle', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetDestinationProjectTitle', ), + 'mode' : 'w' }, + { 'id' : 'destination_project_id', + 'description' : 'The id of the destination project of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('destination_project',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getId', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetDestinationProjectId', ), + 'mode' : 'w' }, + { 'id' : 'destination_project_relative_url', + 'description' : 'The titles of the destination project of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('destination_project',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getRelativeUrl', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetDestinationProjectRelativeUrl', ), + 'mode' : 'w' }, + # Source budget reference + { 'id' : 'source_budget_title', + 'description' : 'The title of the source budget of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('source_budget',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getTitle', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetSourceBudgetTitle', ), + 'mode' : 'w' }, + { 'id' : 'source_budget_id', + 'description' : 'The id of the source budget of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('source_budget',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getId', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetSourceBudgetId', ), + 'mode' : 'w' }, + { 'id' : 'source_budget_relative_url', + 'description' : 'The titles of the source budget of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('source_budget',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getRelativeUrl', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetSourceBudgetRelativeUrl', ), + 'mode' : 'w' }, + # Destination budget reference + { 'id' : 'destination_budget_title', + 'description' : 'The title of the destination budget of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('destination_budget',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getTitle', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetDestinationBudgetTitle', ), + 'mode' : 'w' }, + { 'id' : 'destination_budget_id', + 'description' : 'The id of the destination budget of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('destination_budget',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getId', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetDestinationBudgetId', ), + 'mode' : 'w' }, + { 'id' : 'destination_budget_relative_url', + 'description' : 'The titles of the destination budget of this movement', + 'type' : 'string', + 'acquisition_base_category' : ('destination_budget',), + 'acquisition_portal_type' : order_type_list, + 'acquisition_copy_value' : 0, + 'acquisition_accessor_id' : 'getRelativeUrl', + 'acquisition_depends' : None, + 'alt_accessor_id' : ('_categoryGetDestinationBudgetRelativeUrl', ), + 'mode' : 'w' }, + ) _categories = ( 'source', 'destination', 'source_decision', 'destination_decision', 'source_section', 'destination_section', 'source_administration', 'destination_administration', - 'source_payment', 'destination_payment', ) + 'source_payment', 'destination_payment', + 'source_project', 'destination_project', + 'source_budget', 'destination_budget',)