erp5_pdm: show first newest movement in movement history dialog
User is usually interested by last movement in stock, not by several months/years old movement. Thus display first fresh movement, and user could then go to next pages to see oldest movements if needed.
-
Owner
I'm wondering why we don't use the "normal" sort functionality of listbox ? With this change, the date column is sortable, so if this implementation just reverse the order, and will behave differently than in other listboxs.
PS: similar change (but more global) was discussed in !1305
-
Owner
I'm wondering what to do here, if we change the order, I feel it would be much better to just change in the listbox, because as said in the previous comment the buttons showing the sort order would work as expected and I think this would also look a bit better when there are more than 1000 movements (because
getMovementHistoryList
has a limit of 1000).@romain do you think we should revert for now ?
-
Owner
I also do not understand why the
sort
parameter of the listbox was not used.If
getMovementHistoryList
has a limit of 1000, this commit is not usable anyway. I also agree to revert, and change the listbox's default sort.