{"push_id":2420401360,"size":1,"distinct_size":1,"ref":"refs/heads/11.0-fix-merge_duplicate_move-arm","head":"2ee9c3c3b103cd14b97b8c68f53ddcd8b082f822","before":"929e20f87473e13d7d3f308840ea9196026631c5","commits":[{"sha":"2ee9c3c3b103cd14b97b8c68f53ddcd8b082f822","author":{"name":"Arnold Moyaux","email":"9516b5aeed78c1f3c09cb28a41885566e4c549af@odoo.com"},"message":"[FIX] stock: allow to validate a picking with 2 extra moves\n\nUse case to reproduce:\n- Create a picking containing 2 moves that have a quantity_done greater than reserved quantity\n- Validate the picking with or without backorder\n\nTraceback due to a record that do not exist anymore.\n\nIt happens due to 2 functionality that have a wrong behavior when used together:\n- merge_move function that will try to merge moves with same characteristics inside a same picking.\n- action_done functionality that will create an extra move if the quantity done for a move is greater\nthan reserved quantity. (the extra move is used in order to propagate changes)\n\nWith our usecase:\n- MOVE A, reserved_qty: 10, qty_done: 20\n- MOVE B, reserved_qty: 10, qty_done: 15\naction_done on move A will create a new move thus we will have\n- MOVE A, reserved_qty: 10, qty_done: 20\n-  A bis, reserved_qty: 10, qty_done: 0\n- MOVE B, reserved_qty: 10, qty_done: 15\nthen merge move will not only merge move A and A bis but will also merge B\nwhich result with inconsenstencies and traceback since system will try to\nprocess move B after A\n- MOVE A,A',B reserved_qty:30, qty_done:35 (the 5 extra qty is not propagated)\n\nThis commit adds a kwarg in action_confirm that is propagated to merge_move\nthis kwargs is a record set taht will limit the moves that can be used for the merge\nin order to merge extra move in original move\n\nopw-1825264# Please enter the commit message for your changes. Lines starting","distinct":true,"url":"https://api.github.com/repos/odoo-dev/odoo/commits/2ee9c3c3b103cd14b97b8c68f53ddcd8b082f822"}]}
{"actor":{"display_login":"amoyaux"}}