diff options
| author | Laurent Smet <las@odoo.com> | 2018-12-11 10:27:34 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2019-01-03 08:30:31 +0000 |
| commit | 67d3d30cf2992e3193ec6d20025da5ad2261871a (patch) | |
| tree | 899993a4101aa751b92118a9a9a4ea316c39386b /addons/web/static/src/xml | |
| parent | 5807c3bd95b64df77366d3c214c54ad9638e64a6 (diff) | |
[FIX] tools/date_utils: Fix get_fiscal_year with leap years
Suppose calling get_fiscal_year(date, day=29, month=2) with date(year=2017, month=2, day=28)
The computation steps are:
date_from = date(year=2017, month=2, day=28) - 1 year = date(year=2016, month=2, day=28)
date_from = date_from + 1 day = date(year=2016, month=2, day=29)
It's incorrect because the value of date_from must be date(year=2016, month=3, day=1)
closes odoo/odoo#29416
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
