7.0 can not sort columns of o2m widgets

Bug #1137633 reported by Ferdinand
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Status tracked in Trunk
7.0
New
Undecided
OpenERP Publisher's Warranty Team
Trunk
Confirmed
Wishlist
OpenERP R&D Web Team

Bug Description

feature loss from 6.1

o2m columns (at least stored columns ) could be sorted by clicking on the column header.

Tags: maintenance
Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Dr.Ferdinand,

I have checked your bug report, But this is not a bug but rather than it's your suggestion to add this features in 7.0 also. so we can consider this is as your suggestion and considering it as a "Wishlist".

Thanks for the suggestion!

Changed in openerp-web:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Revision history for this message
Ferdinand (office-chricar) wrote :

Hello Amit!

I can not agree with your answer!

This was a (partly) working feature in 6.1 which is gone in 7.0

How do you want partners to explain feature loss to their clients .......????

Revision history for this message
Asgardinho (felipereyesazul) wrote :

I agree with Ferdinand, the loose of features that were not expected, should not be considered as wishlist.

Revision history for this message
Carlos Sierra Andrés (csierra-h) wrote :

I agree with Ferdinand and Asgardinho. You can't consider this a wishlist. If you lose the ability to create new records is it going to be considered a wishlist?
It is my opinion that this is a feature that any program that lists data should have. Right at this moment this bug can even be considered a blocker IMHO.

Revision history for this message
Carlos Sierra Andrés (csierra-h) wrote :

I guess there are good reasons for this but, in the case of the FieldOne2Many, the sortable feature is explicitily disabled in view_form.js:5539

Enabling sortable here seems to work (at least in the cases I have tried) since FieldOne2Many leverages on BufferedDataSet, which has sorting capabilities.

The case of FieldMany2Many is similar, but in this case you need to change the inheritance of Many2ManyDataset to inherit from BufferedDataSet instead of DataSetStatic.

I can't tell right now which are the implications for changing these bits of code but it may help someone who is in an urge.

If someone tries this and finds some reason why this is not a good idea I would really appreciate.

Bests.

tags: added: maintenance
Revision history for this message
Ferdinand (office-chricar) wrote :

just want to point to
http://bazaar.launchpad.net/~camptocamp/c2c-rd-addons/7.0/files/head:/one2many_sorted/
passing the column name(s) + direction (up/down) to this function would solve the problem for all type of columns

please read the modul description

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.