Commit 4413e4c5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Remove target_stop_date and target_start_date. This change gives more...

Remove target_stop_date and target_start_date. This change gives more performance improvement, because it eliminates acquisitions.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3902 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c42af45
......@@ -55,7 +55,6 @@ class Task:
'acquisition_mask_value' : 1,
'acquisition_accessor_id' : 'getStartDate',
'acquisition_depends' : None,
'alt_accessor_id' : ('getTargetStartDate', ),
'mode' : 'w' },
{ 'id' : 'stop_date',
'description' : 'The date which the movement stops',
......@@ -68,32 +67,7 @@ class Task:
'acquisition_mask_value' : 1,
'acquisition_accessor_id' : 'getStopDate',
'acquisition_depends' : None,
'alt_accessor_id' : ('getTargetStopDate', 'getStartDate', ),
'mode' : 'w' },
# Planning
{ 'id' : 'target_start_date',
'description' : 'The date which the movement starts',
'type' : 'date',
'default' : None,
'acquisition_base_category' : ('parent',), # Do not acquire through order
'acquisition_portal_type' : Expression('python: portal.getPortalAcquisitionMovementTypeList() + portal.getPortalDeliveryTypeList() + portal.getPortalOrderTypeList() + portal.getPortalInvoiceTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 1,
'acquisition_accessor_id' : 'getTargetStartDate',
'acquisition_depends' : None,
'alt_accessor_id' : ('getOrderStartDate', ),
'mode' : 'w' },
{ 'id' : 'target_stop_date',
'description' : 'The date which the movement stops',
'type' : 'date',
'default' : None,
'acquisition_base_category' : ('parent',), # Do not acquire through order
'acquisition_portal_type' : Expression('python: portal.getPortalAcquisitionMovementTypeList() + portal.getPortalDeliveryTypeList() + portal.getPortalOrderTypeList() + portal.getPortalInvoiceTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 1,
'acquisition_accessor_id' : 'getTargetStopDate',
'acquisition_depends' : None,
'alt_accessor_id' : ('getOrderStopDate', 'getTargetStartDate', ),
'alt_accessor_id' : ('getStartDate', ),
'mode' : 'w' },
)
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