← Back to team overview

openerp-india team mailing list archive

[Bug 1227075] Re: [trunk]click on Sales team > ValueError: time data '2013-07' does not match format '%Y-%m-%d'

 

** Project changed: openobject-addons => openobject-server

** Changed in: openobject-server
     Assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
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/1227075

Title:
  [trunk]click on Sales team > ValueError: time data '2013-07' does not
  match format '%Y-%m-%d'

Status in OpenERP Server:
  Confirmed

Bug description:
  try with localhost  :

  Go to sales > sales > sales team : traceback you will face

  OpenERP Server Error

  Traceback (most recent call last):
    File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 314, in dispatch
      response["result"] = self._call_function(**self.params)
    File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 174, in _call_function
      return self.func(*args, **kwargs)
    File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 1053, in nfunc
      return func(*args, **kwargs)
    File "/home/tch/workspace/rdtools/web/trunk/addons/web/controllers/main.py", line 1024, in search_read
      return self.do_search_read(model, fields, offset, limit, domain, sort)
    File "/home/tch/workspace/rdtools/web/trunk/addons/web/controllers/main.py", line 1057, in do_search_read
      records = Model.read(ids, fields or False, request.context)
    File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 581, in proxy
      result = meth(cr, request.uid, *args, **kw)
    File "/home/tch/workspace/rdtools/server/trunk/openerp/osv/orm.py", line 3652, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/home/tch/workspace/rdtools/server/trunk/openerp/osv/orm.py", line 3755, in _read_flat
      res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
    File "/home/tch/workspace/rdtools/server/trunk/openerp/osv/fields.py", line 1164, in get
      result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
    File "/home/tch/workspace/rdtools/addons/trunk/crm/crm.py", line 142, 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 "/home/tch/workspace/rdtools/addons/trunk/crm/crm.py", line 123, in __get_bar_values
      group_obj = obj.read_group(cr, uid, domain, read_fields, groupby_field, context=context)
    File "/home/tch/workspace/rdtools/server/trunk/openerp/osv/orm.py", line 2739, in read_group
      groupby_datetime = datetime.datetime.strptime(alldata[d['id']][groupby], '%Y-%m-%d')
    File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
      (data_string, format))
  ValueError: time data '2013-07' does not match format '%Y-%m-%d'

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


References