Commit be7fabfe authored by Jérome Perrin's avatar Jérome Perrin

define messages for inventory constraints


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24965 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 050de996
...@@ -37,16 +37,25 @@ class InventoryConstraint: ...@@ -37,16 +37,25 @@ class InventoryConstraint:
'type': 'DuplicateInventory', 'type': 'DuplicateInventory',
}, },
{ 'id' : 'category_existence', { 'id' : 'category_existence',
'description' : 'Source, Destination and Sections must be defined', 'description' : 'Destination must be defined',
'type' : 'CategoryExistence', 'type' : 'CategoryExistence',
'portal_type' : Expression('python: portal.getPortalNodeTypeList()'), 'portal_type' : Expression('python: portal.getPortalNodeTypeList()'),
'destination' : 1, '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', { 'id' : 'start_date',
'description' : 'Start Date must be defined', 'description' : 'Start Date must be defined',
'type' : 'PropertyExistence', 'type' : 'PropertyExistence',
'start_date' : 1, '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', { 'id' : 'resource_on_line',
'description' : 'Resource must be defined on all lines', 'description' : 'Resource must be defined on all lines',
......
553 554
\ No newline at end of file \ No newline at end of file
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