[V6 rc2] Can't display project structure

Bug #700470 reported by t.o
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

hello,

Try to display the project structure (projects grouped by parent)

Traceback (most recent call last):
  File "/home/odoo/openerp/server/bin/netsvc.py", line 490, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/odoo/openerp/server/bin/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/odoo/openerp/server/bin/osv/orm.py", line 2182, in read_group
    cr.execute('SELECT min(%s.id) AS id, count(%s.id) AS %s_count' % (self._table, self._table, group_count) + (flist and ',') + flist + ' FROM ' + from_clause + where_clause + gb + limit_str + offset_str, where_clause_params)
  File "/home/odoo/openerp/server/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/home/odoo/openerp/server/bin/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
ProgrammingError: column reference "parent_id" is ambiguous
LINE 1: ... id, count(project_project.id) AS parent_id_count,parent_id,...
                                                             ^

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

Thanks for reporting,this has been recently fixed.

Changed in openobject-client-web:
status: New → Fix Released
affects: openobject-client-web → openobject-addons
Changed in openobject-addons:
milestone: none → 6.0
Revision history for this message
xrg (xrg) wrote : Re: [Bug 700470] [NEW] [V6 rc2] Can't display project structure

On Sunday 09 January 2011, you wrote:
> You have been subscribed to a public bug:
>
> hello,
>
> Try to display the project structure (projects grouped by parent)
> ProgrammingError: column reference "parent_id" is ambiguous
> LINE 1: ... id, count(project_project.id) AS parent_id_count,parent_id,...
> ^

Is that a new db? against which addons revision was it created/last updated?

Because, at a recent patch, the "project.project.parent_id" column has been
removed, in favor of the "account.analytic.account.parent_id" column.
So, if your db still has the "project.parent_id" column, it may make that
mistake.

Please, do NOT drop the column, if you want to experiment anything, just
rename it!

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.