Commit e8b9fd6a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove *_title and *_id from _properties because they are provided...

remove *_title and *_id from _properties because they are provided automatically. *_relative_url are kept as they are for now for compatibility.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30916 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67183edb
...@@ -44,18 +44,6 @@ class Amount: ...@@ -44,18 +44,6 @@ class Amount:
""" """
_properties = ( _properties = (
{ 'id' : 'resource_id',
'description' : "The resource id involved",
'type' : 'string',
'acquisition_base_category' : ('resource',),
'acquisition_portal_type' : Expression('python: portal.getPortalResourceTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 0,
'acquisition_sync_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetResourceId', ),
'mode' : 'w' },
{ 'id' : 'resource_relative_url', { 'id' : 'resource_relative_url',
'description' : "The resource relative url involved", 'description' : "The resource relative url involved",
'type' : 'string', 'type' : 'string',
...@@ -67,18 +55,6 @@ class Amount: ...@@ -67,18 +55,6 @@ class Amount:
'acquisition_accessor_id' : 'getRelativeUrl', 'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None, 'acquisition_depends' : None,
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'resource_title',
'description' : "The resource title involved",
'type' : 'string',
'acquisition_base_category' : ('resource',),
'acquisition_portal_type' : Expression('python: portal.getPortalResourceTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 0,
'acquisition_sync_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetResourceTitle', ),
'mode' : 'w' },
# Accounting # Accounting
{ 'id' : 'quantity', { 'id' : 'quantity',
'description' : """The quantity of resource.""", 'description' : """The quantity of resource.""",
......
...@@ -35,30 +35,4 @@ class Delivery: ...@@ -35,30 +35,4 @@ class Delivery:
Delivery objects usually have a causality. Delivery objects usually have a causality.
""" """
_properties = (
{ 'id' : 'causality_id',
'description' : 'ids of the documents which are in causality relation with delivery',
'type' : 'lines',
'override' : 1,
'acquisition_base_category' : ('causality',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList() + portal.getPortalDeliveryTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'mode' : 'w' },
{ 'id' : 'causality_title',
'description' : 'titles of the documents which are in causality relation with delivery',
'type' : 'lines',
'override' : 1,
'acquisition_base_category' : ('causality',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList() + portal.getPortalDeliveryTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'mode' : 'w' },
)
_categories = ( 'causality', 'incoterm', 'delivery_mode') _categories = ( 'causality', 'incoterm', 'delivery_mode')
...@@ -44,26 +44,6 @@ class Movement: ...@@ -44,26 +44,6 @@ class Movement:
# 'default' : 0, # 'default' : 0,
# 'mode' : 'w' }, # 'mode' : 'w' },
# Order reference # Order reference
{ 'id' : 'order_title',
'description' : 'The title of the order which defines contractual conditions',
'type' : 'string',
'acquisition_base_category' : ('order',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetOrderTitle', ),
'mode' : 'w' },
{ 'id' : 'order_id',
'description' : 'The id of the order which defines contractual conditions',
'type' : 'string',
'acquisition_base_category' : ('order',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetOrderId', ),
'mode' : 'w' },
{ 'id' : 'order_relative_url', { 'id' : 'order_relative_url',
'description' : 'The relative_url of the order which defines contractual conditions', 'description' : 'The relative_url of the order which defines contractual conditions',
'type' : 'string', 'type' : 'string',
......
...@@ -34,17 +34,6 @@ class Path: ...@@ -34,17 +34,6 @@ class Path:
""" """
_properties = ( _properties = (
{ 'id' : 'resource_id',
'description' : "The resource id involved",
'type' : 'string',
'acquisition_base_category' : ('resource',),
'acquisition_portal_type' : Expression('python: portal.getPortalResourceTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 0,
'acquisition_sync_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'mode' : 'w' },
{ 'id' : 'resource_relative_url', { 'id' : 'resource_relative_url',
'description' : "The resource relative url involved", 'description' : "The resource relative url involved",
'type' : 'string', 'type' : 'string',
...@@ -56,17 +45,6 @@ class Path: ...@@ -56,17 +45,6 @@ class Path:
'acquisition_accessor_id' : 'getRelativeUrl', 'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None, 'acquisition_depends' : None,
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'resource_title',
'description' : "The resource title involved",
'type' : 'string',
'acquisition_base_category' : ('resource',),
'acquisition_portal_type' : Expression('python: portal.getPortalResourceTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 0,
'acquisition_sync_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'mode' : 'w' },
# Accounting # Accounting
) )
......
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