Sorting in gtk client partner by country crach
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned | ||
Odoo GTK Client (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
For exemple : Go to sales => customer => view list
Sort by country
then we get this error
Environment Information :
System : Linux-2.
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/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
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/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/
order_by = self._generate_
File "/home/
order_by_clause = self._generate_
File "/home/
assert order_field_
AssertionError: Many2one function/related fields must be stored to be used as ordering fields
Changed in openobject-client: | |
importance: | Medium → Undecided |
Hello,
It's an Assertion saying that Many2one function/related fields must be stored to be used as ordering fields
and as country on partner is a related field with store=False and not saved in the database. I would like to remove the project openobject-client as it does not affect it.
Thanks,