Partner categories can't be sorted alphabetically

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

Bug Description

it seems that

_order = 'parent_id,name'

prohibits proper sorting

not user friendly

I just want to recall that IMHO lists should always be sorted alphabetically by default
I suggest
_order = 'parent_id.name, name'
every user can "see" this

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
affects: openobject-addons → openobject-server
summary: - [6.0RC1] - partner categories can't be sorted alphabetically
+ Partner categories can't be sorted alphabetically
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

the way to do that is to use _parent_store="..."

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

A more user-friendly natural order has been set for partner categories at revision 3093 <email address hidden>.
This makes uses of a combination of _parent_store, _parent_order and _order to achieve the proper effect.

FYI: _order = 'parent_id.name, name' is not valid, because _order is used at a lower-level and must be directly injectable in SQL.

Thanks for reporting!

Changed in openobject-server:
milestone: none → 6.0-rc2
status: Confirmed → Fix Released
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.