[Erp5-report] r20982 - /erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 15 16:30:07 CEST 2008
Author: jerome
Date: Thu May 15 16:30:07 2008
New Revision: 20982
URL: http://svn.erp5.org?rev=20982&view=rev
Log:
add a constraint to make sure the currency is defined, otherwise accounting
generation will fail
Modified:
erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py
Modified: erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py?rev=20982&r1=20981&r2=20982&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py (original)
+++ erp5/trunk/products/ERP5/PropertySheet/TradeOrder.py Thu May 15 16:30:07 2008
@@ -67,6 +67,13 @@
'destination': 1,
'message': 'Recipient or Beneficiary must be defined',
},
+ { 'id' : 'price_currency_category_existence',
+ 'description' : 'Price Currency must be defined',
+ 'type' : 'CategoryExistence',
+ 'portal_type' : ('Currency', ),
+ 'price_currency': 1,
+ 'message': 'Currency must be defined',
+ },
{ 'id' : 'total_quantity',
'description' : 'Total Quantity must not be 0',
'type' : 'TALESConstraint',
More information about the Erp5-report
mailing list