[trunk] Mass Mailing ValueError: unconverted data remains: 23:00:00

Bug #1279745 reported by LisAndi - Andi Becker - http://lisandi.com
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 1

Bug Description

1)
We installed Fresh OpenERP with nearly all modules available in fresh install and tried to open massmailing

2)
see attached screenshot
Marketing - Mass Mailing - Mass Mailing

OpenERP Server Error

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 348, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 220, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 215, in checked_call
    return self.func(*a, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 532, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1132, in search_read
    return self.do_search_read(model, fields, offset, limit, domain, sort)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1153, in do_search_read
    request.context)
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 619, in proxy
    result = meth(cr, request.uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 5028, in search_read
    result = self.read(cr, uid, record_ids, fields, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3240, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3344, in _read_flat
    res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
  File "/usr/lib/pymodules/python2.7/openerp/osv/fields.py", line 1210, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/mass_mailing/mass_mailing.py", line 190, in _get_daily_statistics
    res[id]['opened_monthly'] = self.__get_bar_values(cr, uid, id, obj, domain, ['opened'], 'opened_count', 'opened:day', context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/mass_mailing/mass_mailing.py", line 172, in __get_bar_values
    group_begin_date = datetime.strptime(group['__domain'][0][2], tools.DEFAULT_SERVER_DATE_FORMAT).date()
  File "/usr/lib/python2.7/_strptime.py", line 328, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: 23:00:00

3)
We hoped to be able to install the App without Error

4)
Debian Linux 7
Linux 3.2.0-4-amd64 on x86_64

Intel® Core™ i7-4770
Quadcore Haswell
incl. Hyper-Threading Technology
RAM 32 GB DDR3 RAM
Hard Drive 2 x 2 TB SATA 6 Gb/s 7200 rpm
HDD (Software-RAID 1)
Class Enterprise
Connection 1 Gbit/s-Port
Guaranteed Bandwidth 200 Mbit/s
http://www.hetzner.de/en/hosting/produkte_rootserver/ex40

5)
Version 8.0dev-20140213-000102

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello,

when clicking on 'Mass mailing' still facing this error .So, I am confirming it.

Thank you.

affects: openobject-server → openobject-addons
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
filsys (office-filsystem) wrote :

tools.DEFAULT_SERVER_DATETIME_FORMAT instead tools.DEFAULT_SERVER_DATE_FORMAT in mass_mailing/mass_mailing.py, line 172 solve problem.
Thanks

Revision history for this message
LisAndi - Andi Becker - http://lisandi.com (lisandi) wrote :

this is right filsys but has this solution meanwhile been integrated into the OpenERP source code?
I guess no! Why not?

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.