← Back to team overview

openerp-india team mailing list archive

[Bug 1275214] Re: "unconverted data remains" error in sales teams

 

Fixed in saas-3 at revision 9102 (Revision ID:
dle@xxxxxxxxxxx-20140205165414-ttzjzmf6mjs9gr8e).

** Changed in: openobject-addons
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1275214

Title:
   "unconverted data remains" error in sales teams

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  I get error "ValueError: unconverted data remains: 18:00:00" on page
  Sales\Sales\Sales Teams.

  It look like it  relates to this commit http://bazaar.launchpad.net/~openerp/openobject-server/trunk/revision/5044#openerp/osv/orm.py
  In orm.py for some variable applied  
  DEFAULT_SERVER_DATETIME_FORMAT
  and then in crm.py it tries convert string to datetime via
  DEFAULT_SERVER_DATE_FORMAT

  I use trunk version:
  server: 5048
  addons: 9090
  web: 3926

  
  Traceback (most recent call last):
  File "/usr/local/src/openerp/server/openerp/http.py", line 345, in dispatch
  response["result"] = self._call_function(**self.params)
  File "/usr/local/src/openerp/server/openerp/http.py", line 217, in _call_function
  return checked_call(self.db, *args, **kwargs)
  File "/usr/local/src/openerp/server/openerp/service/model.py", line 112, in wrapper
  return f(dbname, *args, **kwargs)
  File "/usr/local/src/openerp/server/openerp/http.py", line 212, in checked_call
  return self.func(*a, **kw)
  File "/usr/local/src/openerp/server/openerp/http.py", line 528, in __call__
  return self.method(*args, **kw)
  File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1139, in search_read
  :param fields: a list of the fields to return in the result records
  File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1160, in do_search_read
  length = Model.search_count(domain, request.context)
  File "/usr/local/src/openerp/server/openerp/http.py", line 615, in proxy
  result = meth(cr, request.uid, *args, **kw)
  File "/usr/local/src/openerp/server/openerp/osv/orm.py", line 5028, in search_read
  result = self.read(cr, uid, record_ids, fields, context=context)
  File "/usr/local/src/openerp/server/openerp/osv/orm.py", line 3240, in read
  result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/local/src/openerp/server/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/local/src/openerp/server/openerp/osv/fields.py", line 1210, in get
  result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/usr/local/src/openerp/addons/crm/crm.py", line 146, in _get_opportunities_data
  res[id]['monthly_open_leads'] = self.__get_bar_values(cr, uid, obj, lead_domain, ['create_date'], 'create_date_count', 'create_date', context=context)
  File "/usr/local/src/openerp/addons/crm/crm.py", line 127, in __get_bar_values
  group_begin_date = datetime.strptime(group['__domain'][0][2], tools.DEFAULT_SERVER_DATE_FORMAT)
  File "/usr/lib/python2.7/_strptime.py", line 328, in _strptime
  data_string[found.end():])
  ValueError: unconverted data remains: 18:00:00

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1275214/+subscriptions


References