can't sort by country in partner list view

Bug #680830 reported by Aline (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

in trunk -> partner list view
- click "country" column header in order to sort the list by country alphabetic order
- there is a bug

File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 3975, 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

Changed in openobject-server:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
Revision history for this message
Julian Robbins (joolsr) wrote :

I understand what you're saying but here it actually generates an Error. Clearly this error needs replacing with another message to explain why you cant order by that field.

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.