← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 684752] Re: [6.0-rc1] Cannot load module hr_payroll anymore

 

Hello,
I just updated my modules and the problem occurs again ...

[09/Dec/2010:15:44:40]  Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 541, in run
    self.respond(pi)
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 624, in respond
    self.handle_error()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 746, in handle_error
    self.error_response()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/root.py", line 41, in _cp_on_error
    message = errorpage.render()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/error_page.py", line 55, in render
    return self.__render(value)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py", line 191, in func_wrapper
    res = func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/error_page.py", line 75, in __render
    maintenance = proxy.status()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 398, in <lambda>
    return lambda *args: self._session.execute("object", "execute", self._resource, name, *args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 359, in execute
    return self.gateway.execute(obj, method, *args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 155, in execute
    return self.__execute(obj, method, args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 141, in __execute
    common.error(_('Application Error'), err.backtrace)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/common.py", line 74, in error
    raise TinyError(message=msg, title=title or _("Error"))
TinyError: Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 595, in dispatch
    security.check(db,uid,passwd)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/security.py", line 43, in check
    pool = pooler.get_pool(db)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 79, in get_pool
    pool = get_db_and_pool(db_name, force_demo, status, update_module)[1]
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 852, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 697, in load_module_graph
    register_class(package.name)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 441, in register_class
    imp.load_module(m, *fm)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/hr_payroll/__init__.py", line 24, in <module>
    import hr_payroll
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/hr_payroll/hr_payroll.py", line 104, in <module>
    class payroll_register(osv.osv):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/hr_payroll/hr_payroll.py", line 152, in payroll_register
    'grows': fields.function(_calculate, method=True, store=True, multi='dc', string='Gross Salary', type='float', digits=(16, int(config['price_accuracy']))),
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/config.py", line 485, in __getitem__
    return self.options[key]
KeyError: 'price_accuracy'

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/684752

Title:
  [6.0-rc1] Cannot load module hr_payroll anymore

Status in OpenObject Addons Modules:
  Fix Released

Bug description:
  Hello,

I updated the code this morning with last trunk version and I cannot start it anymore. here's the log :

[2010-12-03 15:28:55,129][test_02] INFO:init:module hr_payroll: loading objects
[2010-12-03 15:28:55,129][test_02] INFO:init:module hr_payroll: registering objects
[2010-12-03 15:28:55,197][test_02] CRITICAL:init:Couldn't load module hr_payroll
[2010-12-03 15:28:55,197][test_02] CRITICAL:init:price_accuracy
[2010-12-03 15:28:55,198][test_02] DEBUG_RPC:exception:u'price_accuracy'
[2010-12-03 15:28:55,201][test_02] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/netrpc_server.py", line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 499, in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
[2010-12-03 15:28:55,205][?] DEBUG_RPC:service:'db'
[2010-12-03 15:28:55,205][?] DEBUG_RPC:method:'list'
[2010-12-03 15:28:55,206][?] DEBUG_RPC:params:[]
[2010-12-03 15:28:55,220][?] DEBUG_RPC:service:'common'
[2010-12-03 15:28:55,221][?] DEBUG_RPC:method:'login_message'
[2010-12-03 15:28:55,221][?] DEBUG_RPC:params:[]





References