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
No related merge requests found
......@@ -59,6 +59,7 @@ class Inventory(Delivery):
, PropertySheet.Delivery
, PropertySheet.Path
, PropertySheet.FlowCapacity
, PropertySheet.Inventory
)
security.declarePublic('alternateReindexObject')
......
......@@ -32,29 +32,15 @@ from Products.CMFCore.Expression import Expression
class Inventory:
"""
Properties for Inventory.
No default value is set in order to allow
None inventory values in movements
"""
_properties = (
# Inventory
{ 'id' : 'inventory',
'description' : """The quantity of items in stock after inventory.""",
'type' : 'float',
'acquisition_base_category' : ('delivery',),
'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,
{ 'id' : 'full_inventory',
'description' : """Set to True if inventory contains everything, False if it's only a partial inventory.""",
'type' : 'boolean',
'default' : False,
'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