From e7974299f9bfcec274fbeba284dfdad52ce3f166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 14 Mar 2009 19:15:41 +0100 Subject: [PATCH] Better error message --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index 3f094b800b..e6fe61c0a8 100644 --- a/invoice.py +++ b/invoice.py @@ -1192,11 +1192,11 @@ class InvoiceLine(ModelSQL, ModelView): ('type_account', 'CHECK((type = \'line\' AND account IS NOT NULL) ' \ 'OR (type != \'line\'))', - 'Line type must have an account!'), + 'Line with "line" type must have an account!'), ('type_invoice', 'CHECK((type != \'line\' AND invoice IS NOT NULL) ' \ 'OR (type = \'line\'))', - 'Non line type must have an invoice!'), + 'Line without "line" type must have an invoice!'), ] self._constraints += [ ('check_account', 'account_different_company'),