projects
/
OpenERP
/
cmmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f8739b
)
Correction des contraintes sur les dates des mesurables
author
Alicia FLOREZ
<alicflorez@gmail.com>
Tue, 4 Jun 2013 07:29:36 +0000
(09:29 +0200)
committer
Alicia FLOREZ
<alicflorez@gmail.com>
Tue, 4 Jun 2013 07:29:36 +0000
(09:29 +0200)
axes.py
patch
|
blob
|
history
diff --git
a/axes.py
b/axes.py
index
0c78468
..
8270559
100644
(file)
--- a/
axes.py
+++ b/
axes.py
@@
-51,17
+51,17
@@
class Mesurable(osv.Model):
_sql_constraints = [
(
"date_init_deb_before_date_init_fin",
_sql_constraints = [
(
"date_init_deb_before_date_init_fin",
- "CHECK(date_init_deb<> date_init_fin)",
+ "CHECK(date_init_deb <= date_init_fin)",
"The date_init_deb should be previous date_init_fin",
),
(
"date_plan_deb_before_date_plan_fin",
"The date_init_deb should be previous date_init_fin",
),
(
"date_plan_deb_before_date_plan_fin",
- "CHECK(date_plan_deb <> date_plan_fin)",
+ "CHECK(date_plan_deb <= date_plan_fin)",
"The date_plan_deb should be previous date_plan_fin",
),
(
"date_reel_deb_before_date_reel_fin",
"The date_plan_deb should be previous date_plan_fin",
),
(
"date_reel_deb_before_date_reel_fin",
- "CHECK(date_reel_deb<> date_reel_fin)",
+ "CHECK(date_reel_deb <= date_reel_fin)",
"The date_reel_deb should be previous date_reel_fin",
),
]
"The date_reel_deb should be previous date_reel_fin",
),
]