Browse Source

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

pull/896/head
Alexis de Lattre 7 years ago
parent
commit
0e3587d81c
  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) dt_end = vals[idx+1].date() - relativedelta(days=1)
date_end = fields.Date.to_string(dt_end) date_end = fields.Date.to_string(dt_end)
date_ranges.append({ date_ranges.append({
'name': '%s-%s' % (
'name': '%s%s' % (
self.name_prefix, self.name_prefix,
unicode(idx + 1).zfill(month_digits)), unicode(idx + 1).zfill(month_digits)),
'date_start': date_start, 'date_start': date_start,

Loading…
Cancel
Save