analytic_multicurrency references config['price_accuracy']

Bug #934002 reported by Stuart Longland
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Account - Analytic Accounting
Fix Released
Medium
Unassigned

Bug Description

The analytic_multicurrency module, (trunk version as made available from the OpenERP site) references a configuration key 'price_accuracy', which according to openobject-server bug #671748 (see https://bugs.launchpad.net/openobject-server/+bug/671748 for details) was deprecated in OpenERP 6.0.

The following stack trace is emitted when installing the module.

[2012-02-17 06:41:27,315][development61] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/osv/osv.py", line 175, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/modules/registry.py", line 160, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/modules/loading.py", line 339, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/modules/loading.py", line 254, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/modules/loading.py", line 167, in load_module_graph
    register_module_classes(package.name)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/modules/module.py", line 337, in register_module_classes
    __import__(m)
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/addons/analytic_multicurrency/__init__.py", line 29, in <module>
    import account_analytic_line
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/addons/analytic_multicurrency/account_analytic_line.py", line 39, in <module>
    class account_analytic_line(osv.osv):
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/addons/analytic_multicurrency/account_analytic_line.py", line 85, in account_analytic_line
    'aa_amount_currency': fields.function(_amount_currency, method=True, digits=(16, int(config['price_accuracy'])), string='Amount currency',
  File "/usr/lib64/python2.7/site-packages/openerp-6.1rc1_20120112_173907-py2.7.egg/openerp/tools/config.py", line 601, in __getitem__
    return self.options[key]
KeyError: 'price_accuracy'

Related branches

Changed in c2c-financial-addons:
importance: Undecided → Medium
Changed in c2c-financial-addons:
status: New → Confirmed
affects: c2c-financial-addons → account-analytic
Omar (Pexego) (omar7r)
Changed in account-analytic:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.