Commit c330f04c authored by Romain Courteaud's avatar Romain Courteaud

Add default purchase supply line.

Add default sale supply line.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10105 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 471b9e3e
...@@ -33,6 +33,7 @@ class DefaultSupply: ...@@ -33,6 +33,7 @@ class DefaultSupply:
""" """
_properties = ( _properties = (
# XXX Kept for compatibility.
{ 'id' : 'supply_line', { 'id' : 'supply_line',
'storage_id' : 'default_supply_line', 'storage_id' : 'default_supply_line',
'description' : '', 'description' : '',
...@@ -45,6 +46,38 @@ class DefaultSupply: ...@@ -45,6 +46,38 @@ class DefaultSupply:
'start_date_range_max', 'start_date_range_max',
'start_date_range_min'), 'start_date_range_min'),
'mode' : 'w' }, '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 = () _categories = ()
......
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