From e489a89a681c686e6459bb8db76e72a09c160b78 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 (transplanted from cb1385d2b4487063f1c3565261e6f900a61d874a) --- account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account.py b/account.py index bebea80f25..7059c45df2 100644 --- a/account.py +++ b/account.py @@ -168,8 +168,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):