Comment 5 for bug 1137633

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.