[Erp5-report] r10499 - /erp5/trunk/products/ERP5/Document/BankAccount.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 3 10:15:02 CEST 2006


Author: aurel
Date: Tue Oct  3 10:15:00 2006
New Revision: 10499

URL: http://svn.erp5.org?rev=10499&view=rev
Log:
also check returned value is not '' as now accessor
return default value defined in field

Modified:
    erp5/trunk/products/ERP5/Document/BankAccount.py

Modified: erp5/trunk/products/ERP5/Document/BankAccount.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BankAccount.py?rev=10499&r1=10498&r2=10499&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BankAccount.py (original)
+++ erp5/trunk/products/ERP5/Document/BankAccount.py Tue Oct  3 10:15:00 2006
@@ -75,7 +75,7 @@
       """reference depends on the site configuration.
       """
       value = self._baseGetReference(*args, **kw)
-      if value is None:
+      if value in (None, ''):
         # Try to get a skin named PortalType_getReference.
         portal_type = self.getPortalType()
         method = getattr(self, '%s_getReference' % portal_type.replace(' ', ''), None)




More information about the Erp5-report mailing list