← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 670828] Re: Sorting in gtk client partner by country crach

 

*** This bug is a duplicate of bug 629332 ***
    https://bugs.launchpad.net/bugs/629332

** Changed in: openobject-client
       Status: New => Invalid

-- 
Sorting in gtk client partner by country crach
https://bugs.launchpad.net/bugs/670828
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New
Status in OpenObject GTK Client: Invalid

Bug description:
For exemple : Go to sales => customer => view list 
Sort by country 
then we get this error 


Environment Information : 
System : Linux-2.6.35-22-generic-x86_64-with-Ubuntu-10.10-maverick
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.10
Release:	10.10
Codename:	maverick
Operating System Release : 2.6.35-22-generic
Operating System Version : #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : fr_BE.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/openerp/trunk/openobject-server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/openerp/trunk/openobject-server/bin/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp/trunk/openobject-server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp/trunk/openobject-server/bin/osv/osv.py", line 140, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp/trunk/openobject-server/bin/osv/osv.py", line 130, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp/trunk/openobject-server/bin/osv/orm.py", line 1804, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/openerp/trunk/openobject-server/bin/osv/orm.py", line 4031, in _search
    order_by = self._generate_order_by(order, query)
  File "/home/openerp/trunk/openobject-server/bin/osv/orm.py", line 3998, in _generate_order_by
    order_by_clause = self._generate_m2o_order_by(order_field, query)
  File "/home/openerp/trunk/openobject-server/bin/osv/orm.py", line 3959, in _generate_m2o_order_by
    assert order_field_column._classic_write or getattr(order_field_column, 'store', False), "Many2one function/related fields must be stored to be used as ordering fields"
AssertionError: Many2one function/related fields must be stored to be used as ordering fields





References