← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Happen again with following version-info (6.0.x branch, not trunk)

addons/ : launchpad_translations_on_behalf_of_openerp-20110602060319-yd7ydo50oksv630o 4626
addons-extra/ : jesteve@xxxxxxxxxxxxxxx-20110602100646-66syzmd3oed7khgc 5494
domsense-agilebg-addons-6.0/ : lorenzo.battistini@xxxxxxxxxxx-20110531174254-d4focd2vfednhkc1 8
server/ : launchpad_translations_on_behalf_of_openerp-20110530054037-wxjyiqpks1m9p9r9 3436
web/ : noz@xxxxxxxxxxx-20110602111520-r5i6ynx4bizepzhq 4626


Environment Information : 
System : Linux-2.6.32-31-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.2 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-31-generic
Operating System Version : #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :1901 nch@xxxxxxxxxxx-20110527114809-u7vir1baae1mlj94
Traceback (most recent call last):
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/var/local/software/6.0-trunk/server/bin/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/pooler.py", line 60, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/addons/__init__.py", line 883, in load_modules
    processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/addons/__init__.py", line 716, in load_module_graph
    register_class(package.name)
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/addons/__init__.py", line 450, in register_class
    imp.load_module(m, *fm)
  File "/var/local/software/6.0-trunk/server/bin/addons/hr_payroll_declare/__init__.py", line 24, in <module>
    import hr_payroll_declare
  File "/var/local/software/6.0-trunk/server/bin/addons/hr_payroll_declare/hr_payroll_declare.py", line 33, in <module>
    class hr_payroll_declar(osv.osv):
  File "/var/local/software/6.0-trunk/server/bin/addons/hr_payroll_declare/hr_payroll_declare.py", line 44, in hr_payroll_declar
    'income_sal': fields.float('Income by Salary', digits=(16, int(config['price_accuracy'])), readonly=True),
  File "/var/local/software/openerp-6.0-trunk-20110603-0404/server/bin/tools/config.py", line 507, 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 OpenERP Modules (addons):
  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