← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 680830] Re: can't sort by country in partner list view

 

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

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.

-- 
can't sort by country in partner list view
https://bugs.launchpad.net/bugs/680830
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Confirmed

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





References