Commit 0c2ba5e0 authored by Jérome Perrin's avatar Jérome Perrin

use constraint messages


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26277 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8312304a
......@@ -46,6 +46,7 @@ class Account:
_constraints = (
{ 'id': 'account_type_category_existence',
'description': 'Account Type must be set',
'message_category_not_set': 'Account Type must be set',
'type': 'CategoryExistence',
'account_type' : 1,
'condition' : 'python: object.getValidationState() not'
......@@ -54,6 +55,7 @@ class Account:
{ 'id': 'gap_category_existence',
'description': 'GAP must be set',
'type': 'CategoryExistence',
'message_category_not_set': 'GAP must be set',
'gap' : 1,
'condition' : 'python: object.getValidationState() not'
' in ("invalidated", "deleted")'
......
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