[trunk][account] REGRESSION: impossible to create a chart of account

Bug #611423 reported by Raphaël Valyi - http://www.akretion.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
High
Unassigned

Bug Description

Hello,

On trunk, when trying to create a generic chart of account with demo data at database settings, one will get that error:

System : Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-24-generic
Operating System Version : #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0dev
Last revision No. & ID :1446 <email address hidden>
Traceback (most recent call last):
  File "/home/miguel/openerp/openobject-server/bin/netsvc.py", line 401, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/miguel/openerp/openobject-server/bin/service/web_services.py", line 584, in dispatch
    res = fn(db, uid, *params)
  File "/home/miguel/openerp/openobject-server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/miguel/openerp/openobject-server/bin/osv/osv.py", line 133, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/miguel/openerp/openobject-server/bin/osv/osv.py", line 123, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/miguel/openerp_edge/openerp-trunk/server/bin/addons/base/res/res_config.py", line 183, in action_next
    next = self.execute(cr, uid, ids, context=None)
  File "/home/miguel/openerp_edge/openerp-trunk/addons/account/installer.py", line 416, in execute
    self.generate_configurable_chart(cr, uid, ids, context=context)
  File "/home/miguel/openerp_edge/openerp-trunk/addons/account/installer.py", line 301, in generate_configurable_chart
    data_id = data_pool.search(cr, uid, [('model','=','account.journal.view'), ('name','=','account_sp_journal_view')])
NameError: global name 'data_pool' is not defined

The fix is trivial and is present inside that merge proposal I submitted one week ago now:
https://code.launchpad.net/~akretion-team/openobject-addons/project-management6/+merge/30897

Related branches

Changed in openobject-addons:
importance: Undecided → High
milestone: none → 6.0
Changed in openobject-addons:
status: New → 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.