[Erp5-report] r42927 arnaud.fontaine - /erp5/trunk/products/ERP5PropertySheetLegacy/Propert...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 2 13:39:48 CET 2011


Author: arnaud.fontaine
Date: Wed Feb  2 13:39:47 2011
New Revision: 42927

URL: http://svn.erp5.org?rev=42927&view=rev
Log:
For consistency in PropertyExistence filesystem Constraints, set the
value of a property name to None


Modified:
    erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionConstraint.py
    erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/ProductionOrder.py
    erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/TradeOrder.py

Modified: erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionConstraint.py?rev=42927&r1=42926&r2=42927&view=diff
==============================================================================
--- erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionConstraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/AccountingTransactionConstraint.py [utf8] Wed Feb  2 13:39:47 2011
@@ -50,7 +50,7 @@ class AccountingTransactionConstraint:
                      ' in ("cancelled", "deleted")'
                      ' and object.portal_type!="Purchase Invoice Transaction"',
       'type': 'PropertyExistence',
-      'start_date' : 1,
+      'start_date' : None,
     },
 
     { 'id': 'date_existence_purchase',
@@ -60,7 +60,7 @@ class AccountingTransactionConstraint:
                      ' in ("cancelled", "deleted")'
                      ' and object.portal_type=="Purchase Invoice Transaction"',
       'type': 'PropertyExistence',
-      'stop_date' : 1,
+      'stop_date' : None,
     },
 
     { 'id': 'currency_existence',

Modified: erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/ProductionOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/ProductionOrder.py?rev=42927&r1=42926&r2=42927&view=diff
==============================================================================
--- erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/ProductionOrder.py [utf8] (original)
+++ erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/ProductionOrder.py [utf8] Wed Feb  2 13:39:47 2011
@@ -62,7 +62,7 @@ class ProductionOrder:
     { 'id'            : 'start_date',
       'description'   : 'Start Date must be defined',
       'type'          : 'PropertyExistence',
-      'start_date'    : 1,
+      'start_date'    : None,
       'message_no_such_property' : "Shipping Date must be defined",
     },
     { 'id'            : 'date_coherency',

Modified: erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/TradeOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/TradeOrder.py?rev=42927&r1=42926&r2=42927&view=diff
==============================================================================
--- erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/TradeOrder.py [utf8] (original)
+++ erp5/trunk/products/ERP5PropertySheetLegacy/PropertySheet/TradeOrder.py [utf8] Wed Feb  2 13:39:47 2011
@@ -84,7 +84,7 @@ class TradeOrder:
     { 'id'            : 'start_date',
       'description'   : 'Start Date must be defined',
       'type'          : 'PropertyExistence',
-      'start_date'    : 1,
+      'start_date'    : None,
       'message_no_such_property' : "Shipping Date must be defined",
     },
     { 'id'            : 'date_coherency',



More information about the Erp5-report mailing list