You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When forcefully unreserving then reserving products coming from a same
package for multiple pickings, the source package is wrongly propagated
as destination package on the multiple pickings.
To reproduce:
- `-i sale_stock,sale_management`
- Create a storable product (I) with 30 qty on hand
- Create and confirm an internal transfer to put the product I in an pack (P)
- Create and confirm two SO :
- Sell 10 I
- Sell 20 I
- Check the 2 SO delivery pickings (D):
- Each are reserved from pack P
- They don't have any 'Destination Package' [Expected]
- From the picking list view, by selecting the 2 pickings D :
- 'Unreserve' them both
- 'Check Availability'them both
- Check the pickings D:
- Each are reserved from pack P
- Each have 'Destination Package' P [Faulty]
opw-4272573
closesodoo#193745
Signed-off-by: Steve Van Essche <svs@odoo.com>
self.assertEqual(full_delivery.move_line_ids.package_id, package, "The package should be used as source.")
1968
+
self.assertEqual(full_delivery.move_line_ids.result_package_id, package, "If all the products in a package are to be moved, we must move the entire package.")
1969
+
full_delivery.action_cancel() # Cancel delivery to unreserve the package/quantity.
# action_assign => On move lines, result_package_id is not set.
1988
+
self.assertEqual(partial_deliveries.move_line_ids.package_id, package, "The package should be used as source.")
1989
+
self.assertFalse(partial_deliveries.move_line_ids.result_package_id, "If the contents of a single pack are reserved by multiple picks, the entire pack can't reproduce on each pick.")
0 commit comments