From: Alicia FLOREZ Date: Thu, 21 Mar 2013 16:24:54 +0000 (+0100) Subject: Ajout contrainte pour taches : planned < milestone X-Git-Url: http://git.inspyration.org/?p=OpenERP%2Ftodolist.git;a=commitdiff_plain;h=c35778212d34554596e4dec28946db1d02e9ab57 Ajout contrainte pour taches : planned < milestone --- diff --git a/todolist.py b/todolist.py index 0209a9b..12743d6 100644 --- a/todolist.py +++ b/todolist.py @@ -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", + ), ]