Commit 0e80224e authored by Arnaud Fontaine's avatar Arnaud Fontaine

For consistency in PropertyExistence filesystem Constraints, set the

value of a property name to None



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42927 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6edf29c6
......@@ -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',
......
......@@ -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',
......
......@@ -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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment