[Erp5-report] r24965 - in /erp5/trunk/bt5/erp5_trade: PropertySheetTemplateItem/ bt/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Dec 22 16:43:08 CET 2008


Author: jerome
Date: Mon Dec 22 16:43:08 2008
New Revision: 24965

URL: http://svn.erp5.org?rev=24965&view=rev
Log:
define messages for inventory constraints

Modified:
    erp5/trunk/bt5/erp5_trade/PropertySheetTemplateItem/InventoryConstraint.py
    erp5/trunk/bt5/erp5_trade/bt/revision

Modified: erp5/trunk/bt5/erp5_trade/PropertySheetTemplateItem/InventoryConstraint.py
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/PropertySheetTemplateItem/InventoryConstraint.py?rev=24965&r1=24964&r2=24965&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/PropertySheetTemplateItem/InventoryConstraint.py [utf8] (original)
+++ erp5/trunk/bt5/erp5_trade/PropertySheetTemplateItem/InventoryConstraint.py [utf8] Mon Dec 22 16:43:08 2008
@@ -37,16 +37,25 @@
     'type': 'DuplicateInventory',
     },
     { 'id'            : 'category_existence',
-      'description'   : 'Source, Destination and Sections must be defined',
+      'description'   : 'Destination must be defined',
       'type'          : 'CategoryExistence',
       'portal_type'   : Expression('python: portal.getPortalNodeTypeList()'),
       'destination'        : 1,
-      'destination_section': 1,
+      'message_category_not_set': 'Wharehouse must be defined',
+    },
+    { 'id'            : 'category_existence',
+      'description'   : 'Destination section must be defined',
+      'type'          : 'CategoryExistence',
+      'portal_type'   : Expression('python: portal.getPortalNodeTypeList()'),
+      'destination_section' : 1,
+      'message_category_not_set': 'Owner must be defined',
     },
     { 'id'            : 'start_date',
       'description'   : 'Start Date must be defined',
       'type'          : 'PropertyExistence',
       'start_date'    : 1,
+      'message_property_not_set': 'Inventory Date must be defined',
+      'message_no_such_property': 'Inventory Date must be defined',
     },
     { 'id'            : 'resource_on_line',
       'description'   : 'Resource must be defined on all lines',

Modified: erp5/trunk/bt5/erp5_trade/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/bt/revision?rev=24965&r1=24964&r2=24965&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_trade/bt/revision [utf8] Mon Dec 22 16:43:08 2008
@@ -1,1 +1,1 @@
-553
+554




More information about the Erp5-report mailing list