[Erp5-report] r10105 - /erp5/trunk/products/ERP5/PropertySheet/DefaultSupply.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 18 16:36:39 CEST 2006
Author: romain
Date: Mon Sep 18 16:36:37 2006
New Revision: 10105
URL: http://svn.erp5.org?rev=10105&view=rev
Log:
Add default purchase supply line.
Add default sale supply line.
Modified:
erp5/trunk/products/ERP5/PropertySheet/DefaultSupply.py
Modified: erp5/trunk/products/ERP5/PropertySheet/DefaultSupply.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/DefaultSupply.py?rev=10105&r1=10104&r2=10105&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/DefaultSupply.py (original)
+++ erp5/trunk/products/ERP5/PropertySheet/DefaultSupply.py Mon Sep 18 16:36:37 2006
@@ -33,6 +33,7 @@
"""
_properties = (
+ # XXX Kept for compatibility.
{ 'id' : 'supply_line',
'storage_id' : 'default_supply_line',
'description' : '',
@@ -45,6 +46,38 @@
'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 = ()
More information about the Erp5-report
mailing list