Thursday, May 23, 2019
1 change
Enhancements to existing features
Kit orders now use the routes of their individual components instead of the kit product itself, making fulfillment behavior more accurate. Availability and delivered quantities are calculated from component stock and processed quantities, so sales teams get clearer warnings and more reliable delivery status for kits, including complex cases like backorders, returns, nested kits, and different units of measure.
Original PR description
**Before this PR:** - The routes applied when a kit was ordered was the ones set on the kit. - The quantities available when a kit was ordered was 0 even if enough components were available - The…
**Before this PR:**
- The routes applied when a kit was ordered was the ones set on the kit.
- The quantities available when a kit was ordered was 0 even if enough components were available
- The quantities delivered when a kit was ordered were correct only if all move from the picking of its sale order were done. So the quantities delivered were correct only if all components were fully delivered.
**After this PR:**
- The routes of each components of the kits are applied independently and the routes set on the kit itself are ignored
- A 'next activity' is logged when a kit as the route 'Manufacture' set
- The number of kits available is computed based on the quantities available of the components needed to make the kit.
- The number of kits delivered is computed based on how many kits it's possible to make with the components already processed.
- Some test case are added the check the flows when kits are ordered.
Those test case make sure that:
* Delivered quantities are accurate if :
- kits in kit
- backorders are made
- returns are made
- returns of returns are made
- Multiple differents UoMs are setted on the components of a kit
* Available quantities are accurate if:
- Kits in kit
- Multiple differents UoMs are setted on the components of a kit
TaskID : 1863856
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr