From 0c2ba5e0e6d2f7a74c9c163648a02d8a62799d06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Sat, 4 Apr 2009 09:09:16 +0000
Subject: [PATCH] use constraint messages

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26277 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/PropertySheet/Account.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/product/ERP5/PropertySheet/Account.py b/product/ERP5/PropertySheet/Account.py
index ba604d9281..0bad76e97c 100644
--- a/product/ERP5/PropertySheet/Account.py
+++ b/product/ERP5/PropertySheet/Account.py
@@ -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")'
-- 
2.30.9