[Erp5-report] r18139 - /erp5/trunk/products/ERP5/Document/Movement.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Dec 7 18:15:01 CET 2007
Author: jerome
Date: Fri Dec 7 18:14:58 2007
New Revision: 18139
URL: http://svn.erp5.org?rev=18139&view=rev
Log:
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)
Modified:
erp5/trunk/products/ERP5/Document/Movement.py
Modified: erp5/trunk/products/ERP5/Document/Movement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Movement.py?rev=18139&r1=18138&r2=18139&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Movement.py (original)
+++ erp5/trunk/products/ERP5/Document/Movement.py Fri Dec 7 18:14:58 2007
@@ -246,7 +246,7 @@
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.
More information about the Erp5-report
mailing list