Ajout contrainte pour taches : manday > 0
authorAlicia FLOREZ <alicflorez@gmail.com>
Thu, 21 Mar 2013 16:26:28 +0000 (17:26 +0100)
committerAlicia FLOREZ <alicflorez@gmail.com>
Thu, 21 Mar 2013 16:26:28 +0000 (17:26 +0100)
todolist.py

index 12743d6..6812316 100644 (file)
@@ -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",
         ),
     ]