← Back to team overview

openerp-india team mailing list archive

[Bug 1099265] [NEW] Cannot login after enabling timesheets

 

Public bug reported:

Openerp 7
Taken straight from the trunk today.
I enabled the timesheet module, it showed this error then logged me out, now I cannot get past the login screen because of the following error:


Client Traceback (most recent call last):
  File "/opt/openerp/web/addons/web/http.py", line 195, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/web/addons/web/controllers/main.py", line 817, in authenticate
    req.session.authenticate(db, login, password, env)
  File "/opt/openerp/web/addons/web/session.py", line 116, in authenticate
    uid = self.proxy('common').authenticate(db, login, password, env)
  File "/opt/openerp/web/addons/web/session.py", line 31, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/web/addons/web/session.py", line 104, in send
    raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)


Server Traceback (most recent call last):
  File "/opt/openerp/web/addons/web/session.py", line 90, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 289, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 425, in dispatch
    return fn(*params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 436, in exp_authenticate
    res_users = pooler.get_pool(db).get('res.users')
  File "/opt/openerp/server/openerp/pooler.py", line 49, in get_pool
    return get_db_and_pool(db_name, force_demo, status, update_module)[1]
  File "/opt/openerp/server/openerp/pooler.py", line 33, in get_db_and_pool
    registry = RegistryManager.get(db_name, force_demo, status, update_module)
  File "/opt/openerp/server/openerp/modules/registry.py", line 192, in get
    update_module)
  File "/opt/openerp/server/openerp/modules/registry.py", line 214, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/opt/openerp/server/openerp/modules/loading.py", line 345, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
  File "/opt/openerp/server/openerp/modules/loading.py", line 260, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/openerp/server/openerp/modules/loading.py", line 169, in load_module_graph
    init_module_models(cr, package.name, models)
  File "/opt/openerp/server/openerp/modules/module.py", line 381, in init_module_models
    obj._auto_end(cr, {'module': module_name})
  File "/opt/openerp/server/openerp/osv/orm.py", line 3226, in _auto_end
    cr.execute('ALTER TABLE "%s" ADD FOREIGN KEY ("%s") REFERENCES "%s" ON DELETE %s' % (t, k, r, d))
  File "/opt/openerp/server/openerp/sql_db.py", line 162, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/openerp/server/openerp/sql_db.py", line 227, in execute
    res = self._obj.execute(query, params)
ProgrammingError: relation "hr_timesheet_invoice_factor" does not exist

** Affects: openobject-server
     Importance: Undecided
         Status: New

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

Title:
  Cannot login after enabling timesheets

Status in OpenERP Server:
  New

Bug description:
  Openerp 7
  Taken straight from the trunk today.
  I enabled the timesheet module, it showed this error then logged me out, now I cannot get past the login screen because of the following error:

  
  Client Traceback (most recent call last):
    File "/opt/openerp/web/addons/web/http.py", line 195, in dispatch
      response["result"] = method(self, **self.params)
    File "/opt/openerp/web/addons/web/controllers/main.py", line 817, in authenticate
      req.session.authenticate(db, login, password, env)
    File "/opt/openerp/web/addons/web/session.py", line 116, in authenticate
      uid = self.proxy('common').authenticate(db, login, password, env)
    File "/opt/openerp/web/addons/web/session.py", line 31, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/opt/openerp/web/addons/web/session.py", line 104, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/opt/openerp/web/addons/web/session.py", line 90, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/opt/openerp/server/openerp/netsvc.py", line 289, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/opt/openerp/server/openerp/service/web_services.py", line 425, in dispatch
      return fn(*params)
    File "/opt/openerp/server/openerp/service/web_services.py", line 436, in exp_authenticate
      res_users = pooler.get_pool(db).get('res.users')
    File "/opt/openerp/server/openerp/pooler.py", line 49, in get_pool
      return get_db_and_pool(db_name, force_demo, status, update_module)[1]
    File "/opt/openerp/server/openerp/pooler.py", line 33, in get_db_and_pool
      registry = RegistryManager.get(db_name, force_demo, status, update_module)
    File "/opt/openerp/server/openerp/modules/registry.py", line 192, in get
      update_module)
    File "/opt/openerp/server/openerp/modules/registry.py", line 214, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/opt/openerp/server/openerp/modules/loading.py", line 345, in load_modules
      processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
    File "/opt/openerp/server/openerp/modules/loading.py", line 260, in load_marked_modules
      loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
    File "/opt/openerp/server/openerp/modules/loading.py", line 169, in load_module_graph
      init_module_models(cr, package.name, models)
    File "/opt/openerp/server/openerp/modules/module.py", line 381, in init_module_models
      obj._auto_end(cr, {'module': module_name})
    File "/opt/openerp/server/openerp/osv/orm.py", line 3226, in _auto_end
      cr.execute('ALTER TABLE "%s" ADD FOREIGN KEY ("%s") REFERENCES "%s" ON DELETE %s' % (t, k, r, d))
    File "/opt/openerp/server/openerp/sql_db.py", line 162, in wrapper
      return f(self, *args, **kwargs)
    File "/opt/openerp/server/openerp/sql_db.py", line 227, in execute
      res = self._obj.execute(query, params)
  ProgrammingError: relation "hr_timesheet_invoice_factor" does not exist

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


Follow ups

References