Thursday, October 31, 2024
2 changes · master
Resolved issues and error corrections
Subscription pages no longer show an invoice amount field that was being used beyond its original purpose. This reduces confusion for users and helps ensure credit limit checks rely on clearer, more appropriate information.
Original PR description
When it was originally introduced on 'sale.order', the 'amount_to_invoice' field was only intended to be used to trigger the credit limit warnings on sale orders and invoices. With time, it came to be used for other unintended purposes, which created confusion regarding the computation method and ensuing fixes that did more harm than good. This is why it was decided to remove all unintended usaged of the field in the views, and rename it to further clarify its meaning. task-4213628
This update improves manufacturing planning and shop floor workflows by making replenishment needs and work order filters behave as expected. Teams can more reliably identify products that still need replenishment and find the right shop floor work orders without manual workarounds.
Original PR description
Description of the issue/feature this PR addresses: This PR fixes three Shop Floor and MPS bugs provided in task [4104208](https://www.odoo.com/odoo/project/966/tasks/4104208). Current behavior…
Description of the issue/feature this PR addresses: This PR fixes three Shop Floor and MPS bugs provided in task [4104208](https://www.odoo.com/odoo/project/966/tasks/4104208). Current behavior before PR: 1. Shop Floor ignores the `workcenter_id` context parameter and the user always lands on the same workcenter (the first one in defined). 2. Products that are marked as replenished won't appear under the 'to replenish' filter even if the replenishment is insufficient due to later demand. (underreplenishment) 3. The max replenish option is remains off even if a max replenish quantity is already set. 4. WO filters in Shop Floor for the waiting, pending and done states don't work as intended. 5. Accessing the Shop Floor directly from an MO lands the user in an empty workcenter if All MO isn't enabled. Desired behavior after PR is merged: 1. ~~The user lands on the 'All MO' virtual workcenter if they access Shop Floor through the button in an MO.~~ Nixed. 2. Replenished products will still appear under the 'to replenish' filter if the replenishment turns out to be insufficient. 3. The max replenish option gets automatically toggled on if a max replenish quantity is already specified (ie nonzero), mainly if the product record was added bypassing the form (API, import etc). 4. WO filters are properly implemented. Filtering by the ready and progress states is the default. ~~Entering the Shop Floor through an MO no longer filters by This Station.~~ 5. ~~All MO is temporarily enabled if Shop Floor is accessed through an MO and All MO is not enabled. It's also checked on by default in the workcenter selection menu.~~ Nixed. Task ID: [4104208](https://www.odoo.com/odoo/project/966/tasks/4104208)