Stock move sorting not usefull after reception

Bug #1265608 reported by Etienne Hirt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Stock move sorting is defined as 'date_expected desc, id' . This is useful as long as the items did not arrive yet. At this stage the date field is not used/empty.

At delivery the date field is set as the real reception date. After reception it is IMHO no longer interesting to have the sorting driven by the expected date but from the received date.

In order not to loose the original expected date, thus still allowing to check if a delivery was in time etc, I propose to update the date from the date_expected as long as the move is not in state done and to define sorting as 'date_expected desc, id'. Additionally the date field is set to readonly (in views) in order to avoid that it is changed manually.

Related branches

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.