From 873eb7e49e85c8fc2131bdeadaed4d57b50f2db8 Mon Sep 17 00:00:00 2001 From: Korbinian Preisler Date: Thu, 10 Sep 2009 14:55:18 +0200 Subject: [PATCH] fix change of sequence on period for issue1170 --- account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account.py b/account.py index 33a371bd4c..9f0c3f1752 100644 --- a/account.py +++ b/account.py @@ -164,8 +164,8 @@ class Period(ModelSQL, ModelView): period[sequence].id != \ vals[sequence]: if invoice_obj.search(cursor, user, [ - ('date', '>=', period.start_date), - ('date', '<=', period.end_date), + ('invoice_date', '>=', period.start_date), + ('invoice_date', '<=', period.end_date), ('number', '!=', False), ('type', '=', sequence[:-9]), ], context=context):