Commit 8c33d17a authored by Vincent Pelletier's avatar Vincent Pelletier

Define a new property sheet for Inventory document type.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16111 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f813014d
...@@ -59,6 +59,7 @@ class Inventory(Delivery): ...@@ -59,6 +59,7 @@ class Inventory(Delivery):
, PropertySheet.Delivery , PropertySheet.Delivery
, PropertySheet.Path , PropertySheet.Path
, PropertySheet.FlowCapacity , PropertySheet.FlowCapacity
, PropertySheet.Inventory
) )
security.declarePublic('alternateReindexObject') security.declarePublic('alternateReindexObject')
......
...@@ -32,29 +32,15 @@ from Products.CMFCore.Expression import Expression ...@@ -32,29 +32,15 @@ from Products.CMFCore.Expression import Expression
class Inventory: class Inventory:
""" """
Properties for Inventory. Properties for Inventory.
No default value is set in order to allow
None inventory values in movements
""" """
_properties = ( _properties = (
# Inventory # Inventory
{ 'id' : 'inventory', { 'id' : 'full_inventory',
'description' : """The quantity of items in stock after inventory.""", 'description' : """Set to True if inventory contains everything, False if it's only a partial inventory.""",
'type' : 'float', 'type' : 'boolean',
'acquisition_base_category' : ('delivery',), 'default' : False,
'acquisition_portal_type' : Expression('python: portal.getPortalAcquisitionMovementTypeList() + portal.getPortalDeliveryTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_mask_value' : 1,
'acquisition_accessor_id' : 'getInventory',
'acquisition_depends' : None,
'mode' : 'w' },
{ 'id' : 'inventory_efficiency',
'description' : """The efficiency of the inventory. 1.0 is perfect.""",
'type' : 'float',
'default' : None,
'mode' : 'w' }, 'mode' : 'w' },
) )
......
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