From 191128611df02f368a44caeff80e3cdf9f3016e5 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 5 Jan 2016 10:35:20 +0100 Subject: [PATCH] [FIX] account: typo in date comparison --- addons/account/models/company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/company.py b/addons/account/models/company.py index 1a0d8187551..1b638eac175 100644 --- a/addons/account/models/company.py +++ b/addons/account/models/company.py @@ -54,7 +54,7 @@ Best Regards,''') self = self[0] last_month = self.fiscalyear_last_month last_day = self.fiscalyear_last_day - if (date.month < last_month or (date.month == last_month and date.date <= last_day)): + if (date.month < last_month or (date.month == last_month and date.day <= last_day)): date = date.replace(month=last_month, day=last_day) else: date = date.replace(month=last_month, day=last_day, year=date.year + 1)