projects
/
OpenERP
/
todolist.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ajout contrainte pour taches : planned < milestone
[OpenERP/todolist.git]
/
todolist.py
diff --git
a/todolist.py
b/todolist.py
index
0209a9b
..
12743d6
100644
(file)
--- 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",
+ ),
]