Commit 625e7781 authored by Jérome Perrin's avatar Jérome Perrin

use the good message ID


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21012 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a0c3260
......@@ -44,35 +44,35 @@ class TradeOrder:
'type' : 'CategoryExistence',
'portal_type' : ('Person', 'Organisation'),
'source_section': 1,
'message': 'Supplier must be defined',
'message_category_not_set': 'Supplier must be defined',
},
{ 'id' : 'destination_section_category_existence',
'description' : 'Destination section must be defined',
'type' : 'CategoryExistence',
'portal_type' : ('Person', 'Organisation'),
'destination_section': 1,
'message': 'Client must be defined',
'message_category_not_set': 'Client must be defined',
},
{ 'id' : 'source_category_existence',
'description' : 'Source must be defined',
'type' : 'CategoryExistence',
'portal_type' : ('Person', 'Organisation'),
'source': 1,
'message': 'Sender or Provider must be defined',
'message_category_not_set': 'Sender or Provider must be defined',
},
{ 'id' : 'destination_category_existence',
'description' : 'Destination must be defined',
'type' : 'CategoryExistence',
'portal_type' : ('Person', 'Organisation'),
'destination': 1,
'message': 'Recipient or Beneficiary must be defined',
'message_category_not_set': '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',
'message_category_not_set': 'Currency must be defined',
},
{ 'id' : 'total_quantity',
'description' : 'Total Quantity must not be 0',
......
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