From 4035b94251ae466d7dd66fe50202651a3018bcd4 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Tue, 20 Jul 2004 09:47:45 +0000
Subject: [PATCH] change acqusition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1260 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/PropertySheet/Task.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/PropertySheet/Task.py b/product/ERP5/PropertySheet/Task.py
index f0c519e398..7817d15599 100755
--- a/product/ERP5/PropertySheet/Task.py
+++ b/product/ERP5/PropertySheet/Task.py
@@ -73,24 +73,25 @@ class Task:
             'description' : 'The date which the movement starts',
             'type'        : 'date',
             'default'     : None,
-            'acquisition_base_category'     : ('order', 'parent',),
+            'acquisition_base_category'     : ('parent',), # Do not acquire through order
             'acquisition_portal_type'       : movement_or_delivery_or_order_or_invoice_type_list,
             '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'     : ('order', 'parent',),
+            'acquisition_base_category'     : ('parent',), # Do not acquire through order
             'acquisition_portal_type'       : movement_or_delivery_or_order_or_invoice_type_list,
             'acquisition_copy_value'        : 0,
             'acquisition_mask_value'        : 1,
             'acquisition_accessor_id'       : 'getTargetStopDate',
             'acquisition_depends'           : None,
-            'alt_accessor_id'               : ('getTargetStartDate', ),
+            'alt_accessor_id'               : ('getOrderStopDate', 'getTargetStartDate', ),
             'mode'        : 'w' },
     )
 
-- 
2.30.9