Ajout contrainte pour taches : planned < milestone
[OpenERP/todolist.git] / 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",
+        ),
     ]