c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #11499
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!
--
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/700470
Title:
[V6 rc2] Can't display project structure
Status in OpenObject Addons Modules:
Fix Released
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,...
^
References