[Erp5-report] r18138 - /erp5/trunk/products/ERP5/Document/Movement.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 7 18:10:56 CET 2007


Author: jerome
Date: Fri Dec  7 18:10:56 2007
New Revision: 18138

URL: http://svn.erp5.org?rev=18138&view=rev
Log:
fix undefined name

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=18138&r1=18137&r2=18138&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Movement.py (original)
+++ erp5/trunk/products/ERP5/Document/Movement.py Fri Dec  7 18:10:56 2007
@@ -259,7 +259,7 @@
     #   context.getPrice(context=context)
     # instead of:
     #   context.getPrice(context)
-    if isinstance(default, Base) and context is None:
+    if isinstance(default, Base):
       msg = 'getPrice first argument is supposed to be the default value'\
             ' accessor, the context should be passed as with the context='\
             ' keyword argument'




More information about the Erp5-report mailing list