Commit a66edf2e authored by Aurel's avatar Aurel

isInventoryLine must be isInventoryMovement, and must also be defined

on IventoryCell


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16119 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b7f05cb
...@@ -46,6 +46,7 @@ class InventoryCell(DeliveryCell): ...@@ -46,6 +46,7 @@ class InventoryCell(DeliveryCell):
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
isMovement = 1 isMovement = 1
isInventoryMovement = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -66,7 +67,7 @@ class InventoryCell(DeliveryCell): ...@@ -66,7 +67,7 @@ class InventoryCell(DeliveryCell):
, PropertySheet.MappedValue , PropertySheet.MappedValue
, PropertySheet.ItemAggregation , PropertySheet.ItemAggregation
) )
def _edit(self, REQUEST=None, force_update = 0, **kw): def _edit(self, REQUEST=None, force_update = 0, **kw):
DeliveryCell._edit(self, REQUEST=REQUEST, force_update = force_update, **kw) DeliveryCell._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
# Calculate inventory # Calculate inventory
......
...@@ -45,7 +45,7 @@ class InventoryLine(DeliveryLine): ...@@ -45,7 +45,7 @@ class InventoryLine(DeliveryLine):
add_permission = Permissions.AddPortalContent add_permission = Permissions.AddPortalContent
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
isInventoryLine = 1 isInventoryMovement = 1
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -67,6 +67,7 @@ class InventoryLine(DeliveryLine): ...@@ -67,6 +67,7 @@ class InventoryLine(DeliveryLine):
, PropertySheet.ItemAggregation , PropertySheet.ItemAggregation
) )
def _edit(self, REQUEST=None, force_update = 0, **kw): def _edit(self, REQUEST=None, force_update = 0, **kw):
DeliveryLine._edit(self, REQUEST=REQUEST, force_update = force_update, **kw) DeliveryLine._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
# Calculate inventory # Calculate inventory
......
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