Correction des contraintes sur les dates des mesurables
authorAlicia FLOREZ <alicflorez@gmail.com>
Tue, 4 Jun 2013 07:29:36 +0000 (09:29 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Tue, 4 Jun 2013 07:29:36 +0000 (09:29 +0200)
axes.py

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",
-            "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",
-            "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",
-            "CHECK(date_reel_deb<> date_reel_fin)",
+            "CHECK(date_reel_deb <= date_reel_fin)",
             "The date_reel_deb should be previous date_reel_fin",
         ),
     ]