diff --git a/product/ERP5/PropertySheet/DefaultSupply.py b/product/ERP5/PropertySheet/DefaultSupply.py index c2874fd76863ecf75f34c91827d4d5c43e576303..0fbdeeb685eaf2ae7eddba00024df5dd94db62dc 100644 --- a/product/ERP5/PropertySheet/DefaultSupply.py +++ b/product/ERP5/PropertySheet/DefaultSupply.py @@ -33,6 +33,7 @@ class DefaultSupply: """ _properties = ( + # XXX Kept for compatibility. { 'id' : 'supply_line', 'storage_id' : 'default_supply_line', 'description' : '', @@ -45,6 +46,38 @@ class DefaultSupply: 'start_date_range_max', 'start_date_range_min'), 'mode' : 'w' }, + # Define default purchase supply line + { 'id' : 'purchase_supply_line', + 'storage_id' : 'default_psl', + 'description' : '', + 'type' : 'content', + 'portal_type' : ('Purchase Supply Line',), + 'acquired_property_id' : ('base_price', 'id', 'priced_quantity', + 'price_currency', + 'source', 'destination', + 'source_title', 'destination_title', + 'source_value', 'destination_value', + 'quantity_step', 'priced_quantity', + 'start_date', 'stop_date', + 'start_date_range_max', + 'start_date_range_min'), + 'mode' : 'w' }, + # Define default sale supply line + { 'id' : 'sale_supply_line', + 'storage_id' : 'default_ssl', + 'description' : '', + 'type' : 'content', + 'portal_type' : ('Sale Supply Line',), + 'acquired_property_id' : ('base_price', 'id', 'priced_quantity', + 'price_currency', + 'source', 'destination', + 'source_title', 'destination_title', + 'source_value', 'destination_value', + 'quantity_step', 'priced_quantity', + 'start_date', 'stop_date', + 'start_date_range_max', + 'start_date_range_min'), + 'mode' : 'w' }, ) _categories = ()