trunk - Sorting of records based on _inherit_fields is not possible!

Bug #603900 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
Unassigned

Bug Description

./openobject-addons revno: 4026
./openobject-client revno: 1392
./openobject-server revno: 2487

sales/product form can't sort by product names

As already often requested, the sort of products should be NLS-alphabetically
category, name
as every other catalog is sorted, to comply to human needs

Related branches

Changed in openobject-addons:
status: New → Confirmed
summary: - trunk - products - gtk - column name not sortable
+ trunk - Sorting of records based on _inherit_fields is not possible!
affects: openobject-addons → openobject-server
Changed in openobject-server:
importance: Undecided → Medium
milestone: none → 6.0
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hi,

Here is a patch that lets you sort a column which belongs to _inherit_fields.

Stable works normal,as it follows client-side sorting.

Trunk ignored the column 'name' which did not belong to product_product.

This is a generic issue. We appreciate your concern.

Thank for posting it.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Hi Jay,

Thank you for your patch, but could you review it, because the string.join method is deprecated in the official documentation on docs.python.org

Instead, you can use " and ".join(conditions)

Regards,

Stéphane

Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed by revision 2564 <email address hidden>.
Thanks.

Changed in openobject-server:
status: In Progress → Fix Released
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks Dr. Ferdinand for pointing this important issue to us..
All credits to you.

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.