[FIX] stock: select picking type deterministically
The default order on `sequence` was not specific enough, causing semi-random selection of picking type and warehouse when several types exist with the same sequence. The problem was made more likely by the fact that warehouses create their own picking types. The algorithm to determine the sequences for the new types was not handling properly the case of a NULL sequence. The patch fixes both issues: the selection of the default picking type (e.g. for purchase orders), and the algorithm for choosing the sequence for new picking types.
Loading
Please register or sign in to comment