diff --git a/account.py b/account.py index 3a4561f708..91f01b47f0 100644 --- a/account.py +++ b/account.py @@ -829,7 +829,7 @@ class Account(ModelSQL, ModelView): fiscalyear = None if youngest_fiscalyear: fiscalyears = FiscalYear.search([ - ('end_date', '<=', youngest_fiscalyear.start_date), + ('end_date', '<', youngest_fiscalyear.start_date), ('company', '=', youngest_fiscalyear.company), ], order=[('end_date', 'DESC')], limit=1) if fiscalyears: