From cb0863dcc08db6c56b82ee14b0272028f2b321e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 7 Dec 2007 17:14:58 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/Movement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py index e52a05dd07..6b85d3436b 100644 --- a/product/ERP5/Document/Movement.py +++ b/product/ERP5/Document/Movement.py @@ -246,7 +246,7 @@ class Movement(XMLObject, Amount): return {'price': context.Movement_lookupPrice()} 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. -- 2.30.9