From 36c2888ccac17e3268c62baf6cbbc96a837d4405 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Tue, 22 May 2007 14:37:28 +0000 Subject: [PATCH] 2007-05-22 yo * The budget constraint should check start_date_range_min and start_date_range_max, instead of start_date. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14545 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../PropertySheetTemplateItem/BudgetConstraint.py | 5 +++-- bt5/erp5_budget/bt/change_log | 3 +++ bt5/erp5_budget/bt/revision | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_budget/PropertySheetTemplateItem/BudgetConstraint.py b/bt5/erp5_budget/PropertySheetTemplateItem/BudgetConstraint.py index 51a1ded2dc..86d9273e24 100644 --- a/bt5/erp5_budget/PropertySheetTemplateItem/BudgetConstraint.py +++ b/bt5/erp5_budget/PropertySheetTemplateItem/BudgetConstraint.py @@ -34,7 +34,8 @@ class BudgetConstraint: _constraints = ( { 'id' : 'property_existence', 'type' : 'PropertyExistence', - 'start_date' : None, - 'description' : 'Start date is not defined.' + 'start_date_range_min' : None, + 'start_date_range_max' : None, + 'description' : 'Budget term is not defined.' }, ) diff --git a/bt5/erp5_budget/bt/change_log b/bt5/erp5_budget/bt/change_log index 95f1b4b29e..11f77e6dce 100644 --- a/bt5/erp5_budget/bt/change_log +++ b/bt5/erp5_budget/bt/change_log @@ -1,3 +1,6 @@ +2007-05-22 yo +* The budget constraint should check start_date_range_min and start_date_range_max, instead of start_date. + 2005-02-16 Romain * Build for CVS. diff --git a/bt5/erp5_budget/bt/revision b/bt5/erp5_budget/bt/revision index c7930257df..f11c82a4cb 100644 --- a/bt5/erp5_budget/bt/revision +++ b/bt5/erp5_budget/bt/revision @@ -1 +1 @@ -7 \ No newline at end of file +9 \ No newline at end of file -- 2.30.9