Ajout contrainte pour taches : planned < milestone
authorAlicia FLOREZ <alicflorez@gmail.com>
Thu, 21 Mar 2013 16:24:54 +0000 (17:24 +0100)
committerAlicia FLOREZ <alicflorez@gmail.com>
Thu, 21 Mar 2013 16:24:54 +0000 (17:24 +0100)
todolist.py

index 0209a9b..12743d6 100644 (file)
@@ -134,6 +134,11 @@ class Task(osv.Model):
             "CHECK(name <> description)",
             "Fields name and description should be different",
         ),
+        (
+            "target_before_milestone_constraint",
+            "CHECK(planned < milestone)",
+            "The target date should be previous milestone date",
+        ),
     ]