can't select parent analytic account

Bug #537493 reported by Francois Pietquin (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
gpa(OpenERP)

Bug Description

In Financial Management / Configuration / Analytic Accounting / Analytic Accounts (form view)
I open the pop-up to find a source (parent analytic account).
I select one and then it crashes when I click on OK.

addons revision 3174

Traceback (most recent call last):
  File "/home/francois/openerp/trunk/server/bin/netsvc.py", line 370, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/francois/openerp/trunk/server/bin/service/web_services.py", line 587, in dispatch
    res = fn(db, uid, *params)
  File "/home/francois/openerp/trunk/server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/francois/openerp/trunk/server/bin/osv/osv.py", line 120, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/francois/openerp/trunk/server/bin/osv/osv.py", line 110, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/francois/openerp/trunk/server/bin/addons/analytic/project.py", line 258, in on_change_parent
    childs = self.search(cr, uid, [('parent_id', '=', parent_id), ('active', 'in', [True, False])])
  File "/home/francois/openerp/trunk/server/bin/osv/orm.py", line 3297, in search
    (qu1, qu2, tables) = self._where_calc(cr, user, args, context=context)
  File "/home/francois/openerp/trunk/server/bin/osv/orm.py", line 3280, in _where_calc
    qu1, qu2 = e.to_sql()
  File "/home/francois/openerp/trunk/server/bin/osv/expression.py", line 434, in to_sql
    q, p = self.__leaf_to_sql(e, table)
  File "/home/francois/openerp/trunk/server/bin/osv/expression.py", line 360, in __leaf_to_sql
    instr = ','.join([table._columns[left]._symbol_set[0]] * len_after)
KeyError: 'active'

Related branches

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed by revision 3186 <email address hidden>.
Thank you Francois.

Changed in openobject-addons:
status: New → Confirmed
assignee: nobody → gpa(Open ERP) (gpa-openerp)
milestone: none → 5.2
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.