From fe02b9e185a18f89322aae36d6fe11553c50267a Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Tue, 8 Nov 2005 16:04:55 +0000
Subject: [PATCH] Move pricing model to property sheet SupplyLine.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4281 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/PropertySheet/Price.py | 30 +++++++++++++----------------
 1 file changed, 13 insertions(+), 17 deletions(-)

diff --git a/product/ERP5/PropertySheet/Price.py b/product/ERP5/PropertySheet/Price.py
index 8ed8a87e87..9d0a30e088 100755
--- a/product/ERP5/PropertySheet/Price.py
+++ b/product/ERP5/PropertySheet/Price.py
@@ -30,25 +30,23 @@ from Products.CMFCore.Expression import Expression
 
 class Price:
     """
-        Properties which allow to define a generic Price.
+      Properties which allow to define a generic Price.
     """
-
     _properties = (
         # Pricing properties
         {   'id'          : 'price',
             'description' : 'A typical per unit price',
             'type'        : 'float',
             'acquisition_base_category'     : ('order', 'delivery',),
-            'acquisition_portal_type'       : Expression('python: portal.getPortalAcquisitionMovementTypeList() + portal.getPortalDeliveryTypeList()'),
+            'acquisition_portal_type'       : \
+                Expression('python: ' \
+                           'portal.getPortalAcquisitionMovementTypeList() +' \
+                           'portal.getPortalDeliveryTypeList()'),
             'acquisition_copy_value'        : 0,
             'acquisition_mask_value'        : 1,
             'acquisition_accessor_id'       : 'getPrice',
             'acquisition_depends'           : None,
             'mode'        : 'w' },
-        {   'id'          : 'base_price',
-            'description' : 'A typical per unit base price',
-            'type'        : 'float',
-            'mode'        : 'w' },
         {   'id'          : 'priced_quantity',
             'description' : 'Number of units involved in base prices',
             'type'        : 'float',
@@ -67,26 +65,24 @@ class Price:
         # Such price should be used very carefully since
         # They are incompatible with the multi company model
         {   'id'          : 'source_base_price',
-            'description' : 'A typical per unit price at which this resource can be sourced (bought)',
+            'description' : 'A typical per unit price at which this ' \
+                            'resource can be sourced (bought)',
             'type'        : 'float',
             'mode'        : 'w' },
         {   'id'          : 'source_base_price_validity',
-            'description' : 'Validity of the typical per unit price at which this resource can be sourced',
+            'description' : 'Validity of the typical per unit price at ' \
+                            'which this resource can be sourced',
             'type'        : 'date',
             'mode'        : 'w' },
         {   'id'          : 'destination_base_price',
-            'description' : 'A typical per unit price at which this resource can be supplied (sold)',
+            'description' : 'A typical per unit price at which this ' \
+                            'resource can be supplied (sold)',
             'type'        : 'float',
             'mode'        : 'w' },
         {   'id'          : 'destination_base_price_validity',
-            'description' : 'Validity of the typical per unit price at which this resource can be supplied',
+            'description' : 'Validity of the typical per unit price at ' \
+                            'which this resource can be supplied',
             'type'        : 'date',
             'mode'        : 'w' },
-        # They are incompatible with the multi company model
-        {   'id'          : 'quantity_step',
-            'description' : 'A list of quantity values which define acceptable ranges',
-            'type'        : 'float',
-            'multivalued' : 1,
-            'mode'        : 'w' },
     )
 
-- 
2.30.9