diff options
| author | qdp-odoo <qdp@odoo.com> | 2019-01-14 14:30:11 +0000 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2019-01-14 14:33:52 +0000 |
| commit | 98313838da609900ab037bbdb88365e5bb8043c2 (patch) | |
| tree | 87edb899f3c2f06edf818c16c3334ac07e50c7f6 | |
| parent | 500b0191abe0cdd7af813bdaa8efce0c0c455de0 (diff) | |
[FIX] account: aged partner report
The aged reports were wrongly taking the previous day of the requested date to compute the different report periods.
E.g: An aged balance requested for the 31-12-2018 was excluding entries made on the that exact date and was starting from the 30-12-2018
closes odoo/odoo#30195
| -rw-r--r-- | addons/account/report/account_aged_partner_balance.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/report/account_aged_partner_balance.py b/addons/account/report/account_aged_partner_balance.py index 6df0ffb1274..bc660b494b3 100644 --- a/addons/account/report/account_aged_partner_balance.py +++ b/addons/account/report/account_aged_partner_balance.py @@ -28,7 +28,7 @@ class ReportAgedPartnerBalance(models.AbstractModel): ctx = self._context periods = {} date_from = fields.Date.from_string(date_from) - start = date_from - relativedelta(days=1) + start = date_from for i in range(5)[::-1]: stop = start - relativedelta(days=period_length) period_name = str((5-(i+1)) * period_length + 1) + '-' + str((5-i) * period_length) |
