← Back to team overview

openerp-india team mailing list archive

[Bug 987936] Re: Error when use Period search field in Accounting journal entries

 

*** This bug is a duplicate of bug 943359 ***
    https://bugs.launchpad.net/bugs/943359

** This bug has been marked a duplicate of bug 943359
   Error on view journal items

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

Title:
  Error when use Period search field in Accounting journal entries

Status in OpenERP Server:
  New

Bug description:
  Server rises following error:

  Client Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 180, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1204, in load
      return self.fields_view_get(req, model, view_id, view_type, toolbar=toolbar)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1086, in fields_view_get
      fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
      args, kw)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 611, in send
      raise fault

  
  Server Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 592, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 586, in dispatch
      res = fn(db, uid, *params)
    File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/lib/pymodules/python2.6/openerp/addons/audittrail/audittrail.py", line 495, in execute_cr
      return fct_src(cr, uid, model, method, *args)
    File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/lib/pymodules/python2.6/openerp/addons/account/account_move_line.py", line 972, in fields_view_get
      result = super(account_move_line, self).fields_view_get(cr, uid, view_id, view_type, context=context, toolbar=toolbar, submenu=submenu)
    File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 2149, in fields_view_get
      xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
    File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 1789, in __view_look_dom_arch
      fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
    File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 1695, in __view_look_dom
      result = self.view_header_get(cr, user, False, node.tag, context)
    File "/usr/lib/pymodules/python2.6/openerp/addons/account/account_move_line.py", line 935, in view_header_get
      cr.execute('SELECT code FROM account_period WHERE id = %s', (context['period_id'], ))
    File "/usr/lib/pymodules/python2.6/openerp/sql_db.py", line 152, in wrapper
      return f(self, *args, **kwargs)
    File "/usr/lib/pymodules/python2.6/openerp/sql_db.py", line 212, in execute
      res = self._obj.execute(query, params)
  DataError: invalid input syntax for integer: "X 01/2012"
  LINE 1: SELECT code FROM account_period WHERE id = E'X 01/2012'
                                                     ^

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


References