Browse Source

[FIX] Display date_from and date_to with date_range.

pull/189/head
Adrien Peiffer (ACSONE) 8 years ago
parent
commit
441f769b45
  1. 2
      mis_builder/models/mis_builder.py

2
mis_builder/models/mis_builder.py

@ -1251,7 +1251,7 @@ class MisReportInstance(models.Model):
if not period.valid:
continue
# add the column header
if period.duration > 1 or period.type == 'w':
if period.duration > 1 or period.type in ('w', 'date_range'):
# from, to
date_from = self._format_date(lang_id, period.date_from)
date_to = self._format_date(lang_id, period.date_to)

Loading…
Cancel
Save