product_product order by name error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KDE OpenObject Client |
New
|
Undecided
|
Unassigned |
Bug Description
trying to sort the product list by name (which is inherited from product_templates )
creates a servside sort
"order by name ASC" which can't work.....
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: column "name" does not exist
LINE 1: ..." where (product_
A Dilluns, 9 de novembre de 2009, Ferdinand @ ChriCar va escriure: terp/OpenERP/ branch/ server/ 5.0/bin/ osv/osv. py", line 61, in terp/OpenERP/ branch/ server/ 5.0/bin/ osv/osv. py", line 120, in terp/OpenERP/ branch/ server/ 5.0/bin/ osv/osv. py", line 112, in terp/OpenERP/ branch/ server/ 5.0/bin/ osv/orm. py", line 2928, in by+limit_ str+offset_ str, qu2) File terp/OpenERP/ branch/ server/ 5.0/bin/ sql_db. py", line 76, in wrapper terp/OpenERP/ branch/ server/ 5.0/bin/ sql_db. py", line 120, in execute( query, params) product. active = E'True') order by name ASC
> Public bug reported:
>
> trying to sort the product list by name (which is inherited from
> product_templates ) creates a servside sort
> "order by name ASC" which can't work.....
>
> Traceback (most recent call last):
> File "/home/
> wrapper return f(self, dbname, *args, **kwargs)
> File "/home/
> execute res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
> File "/home/
> execute_cr return getattr(object, method)(cr, uid, *args, **kw)
> File "/home/
> search cr.execute('select %s.id from ' % self._table + ','.join(tables)
> +qu1+' order by '+order_
> "/home/
> return f(self, *args, **kwargs)
> File "/home/
> execute res = self._obj.
> ProgrammingError: column "name" does not exist
> LINE 1: ..." where (product_
But it doesn't crash Koo does it? Koo already handles those cases and it knows
that in some circumstances it won't be able to sort.
> client- kde
> ** Affects: openobject-
> Importance: Undecided
> Status: New
>
-- www.NaN- tic.com
Albert Cervera i Areny
http://
Mòbil: +34 669 40 40 18