odoo/odoo#202054
Created by fw-bot
            Merged
                at 765fef72e37c0d3781880b5eba8403102a60801b
            
                Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:17.0-16.0-opw-4620008-mrp-3-steps-byproduct-snd-422651-fw
- head
- 59e131985b96fcd01a54b46e685a492170f9e22a
- merged
- 8 months ago by Logistics, Stéphane Diez (snd)
| odoo/odoo | |
|---|---|
| 16.0 | #201619 | 
| 17.0 | #202054 | 
| saas-17.4 | #202159 | 
| 18.0 | #202300 | 
| saas-18.1 | #202407 | 
| saas-18.2 | #202684 | 
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master | #202750 | 
[FW][FIX] mrp: 3-steps manu with free byproduct
When manually adding a byproduct to a MO, the warehouse is not set because default_warehouse_id is missing from the context. This means that the push move from post-prod to stock is never created and the byproduct is stuck in post-production location. This fix adds the context key in the MO form view.
Steps:
- Activate routes & by-product in the main settings
- Activate manufacturing in 3 steps on the warehouse
- Create manufacturing order for a product and add a by-product with a positive quantity
- Confirm manufacturing order
- Pick components
- Produce & close MO
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #201619