From 09c43f9cb2d035bd8203e8750e2627995c4e6be9 Mon Sep 17 00:00:00 2001 From: Alicia FLOREZ Date: Thu, 21 Mar 2013 17:26:28 +0100 Subject: [PATCH] Ajout contrainte pour taches : manday > 0 --- todolist.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/todolist.py b/todolist.py index 12743d6..6812316 100644 --- a/todolist.py +++ b/todolist.py @@ -135,9 +135,14 @@ class Task(osv.Model): "Fields name and description should be different", ), ( - "target_before_milestone_constraint", + "planned_before_milestone_constraint", "CHECK(planned < milestone)", - "The target date should be previous milestone date", + "The planned date should be previous milestone date", + ), + ( + "manday_sup_0_constraint", + "CHECK(manday < 0)", + "The manday should be positive", ), ] -- 1.7.10.4