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):