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

Add an ignored `evaluate` keyword argument, otherwise the warning 'Passing

keyword arguments to Movement.getPrice has no effect' will be printed by this
line in Base.edit:
  old_value = self.getProperty(key, evaluate=0)



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18139 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c33b7c7
...@@ -246,7 +246,7 @@ class Movement(XMLObject, Amount): ...@@ -246,7 +246,7 @@ class Movement(XMLObject, Amount):
return {'price': context.Movement_lookupPrice()} return {'price': context.Movement_lookupPrice()}
security.declareProtected(Permissions.AccessContentsInformation, 'getPrice') security.declareProtected(Permissions.AccessContentsInformation, 'getPrice')
def getPrice(self, default=None, **kw): def getPrice(self, default=None, evaluate=1, **kw):
""" """
Get the Price in the context. Get the Price in the context.
......
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