On 2018-05-09 15:29, Sergi Almacellas Abellana wrote:
> I'm wondering if it won't be worth to allow to define the order on the tab_domain also.
I thought about it but I'm not sure if it is a good idea.
Any way, this should be discussed on another issue.
I'm wondering if it won't be worth to allow to define the order on the tab_domain also. We have a use case on a custom task view where we list the "Pending" and the "Done" tasks. For the Pending task it makes sense to order by date ascending but for the done tasks it makes sense to order by date descending so the older actions are hidden.
It think this also makes sense for the shipments as the all tabs may be ordered by the planned date but the all should be ordered by effective date descending with null first.
I think it makes more sense to order shipment by planned date.
The only view where it makes less sense is the "All" tabs because there are shipment done which may have a different planned and effective date. But I think it is any way better than the current behavior.