[7.0][scheduler_error_mailer] Error when field is of type date

Bug #1313630 reported by Yajo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Server Environment And Tools
New
Undecided
Unassigned

Bug Description

When you base the configurator in a date field, it fails with this error:

2014-04-28 10:38:39,793 32648 ERROR grupoesoc openerp.addons.base.ir.ir_cron: Call of self.pool.get('super.calendar.configurator').generate_calendar_records(cr, uid, *([], {})) failed in Job 10
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_cron.py", line 136, in _callback
    method(cr, uid, *args)
  File "/opt/openerp-community-repo-installer/addons/super_calendar/super_calendar.py", line 74, in generate_calendar_records
    date_start= datetime.strptime(current_record[line.date_start_field_id.name], tools.DEFAULT_SERVER_DATETIME_FORMAT)
  File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data '2014-02-27' does not match format '%Y-%m-%d %H:%M:%S'

It should detect if the field is of type date to avoid this exception, or at least not allow the user to use a date field to schedule.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.