Commit b2b4c444 authored by Jérome Perrin's avatar Jérome Perrin

Simulation movement should not lookup base unit price

parent 9a81cae6
......@@ -122,14 +122,19 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin):
""" show the content in the left pane of the ZMI """
return self.objectValues()
# Price should be acquired
security.declareProtected( Permissions.AccessContentsInformation,
'getPrice')
def getPrice(self, default=None, context=None, REQUEST=None, **kw):
"""
"""Get the price set locally, without lookup.
"""
return self._baseGetPrice(default) # Call the price method
security.declareProtected(Permissions.AccessContentsInformation, 'getBaseUnitPrice')
def getBaseUnitPrice(self, context=None, **kw):
"""Get the base unit price set locally, without lookup.
"""
return self._baseGetBaseUnitPrice()
security.declareProtected( Permissions.AccessContentsInformation,
'getSimulationState')
def getSimulationState(self, id_only=1):
......
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