From 77fa302bbf58959959c790e8ae6799c921876f74 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Thu, 7 Mar 2013 16:55:54 +0100 Subject: [PATCH] Replace _constraints with validate in ModelStorage and improve user messages. issue2616 review371002 --- opportunity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opportunity.py b/opportunity.py index 25fd965a2d..f88c6ba50a 100644 --- a/opportunity.py +++ b/opportunity.py @@ -98,11 +98,11 @@ class SaleOpportunity(Workflow, ModelSQL, ModelView): cls._sql_constraints += [ ('check_percentage', 'CHECK(probability >= 0 AND probability <= 100)', - 'Probability must be between 0 and 100!') + 'Probability must be between 0 and 100.') ] cls._error_messages.update({ 'delete_cancel': ('Sale Opportunity "%s" must be cancelled ' - 'before deletion!'), + 'before deletion.'), }) cls._transitions |= set(( ('lead', 'opportunity'),