Browse Source

date_range: don't auto-add '-' after prefix when generating date ranges via wizard

pull/3/head
Alexis de Lattre 8 years ago
committed by Laurent Mignon (ACSONE)
parent
commit
5251368d25
  1. 2
      date_range/wizard/date_range_generator.py

2
date_range/wizard/date_range_generator.py

@ -51,7 +51,7 @@ class DateRangeGenerator(models.TransientModel):
dt_end = vals[idx+1].date() - relativedelta(days=1)
date_end = fields.Date.to_string(dt_end)
date_ranges.append({
'name': '%s-%s' % (
'name': '%s%s' % (
self.name_prefix,
unicode(idx + 1).zfill(month_digits)),
'date_start': date_start,

Loading…
Cancel
Save