Daily updates from Odoo
Thursday, January 23, 2025
2 changes · saas-17.2
Resolved issues and error corrections
Manufacturing consumption totals now reflect only the quantities actually registered when users manually change lots in Shop Floor. This prevents incorrect over-consumption warnings, helping operators close production orders without false alerts.
Original PR description
Issue ----- When manually changing the quantity and lot consumed through the Shop Floor, the consumed quantity is computed wrong and the user gets a "Consumption Warning". Steps to reproduce ----- -…
Issue
-----
When manually changing the quantity and lot consumed through the Shop Floor, the consumed quantity is computed wrong and the user gets a "Consumption Warning".
Steps to reproduce
-----
- Install MRP
- Create a "Cons" product, tracked by lot
- Change the "Cons" on hand quantity, create lot 1 with 10 units & lot 2 with 20
- Create a "Final" product
- Create a Bill of Materials for "Final"
- Add "Cons" as a component of the BoM
- Add an operation to the BoM
- Add an instruction to the operation with "Type" set to "Register Consumed Materials" & "Product To Register" set to "Cons"
- Create a Manufacturing Order for 20 of "Final" & confirm it (the "Cons" consumption should be split 10/10 between the 2 lots)
- Go to the Shop Floor
- Register the production of the 20 units
- Open the instruction
- Change the consumed quantity to 20
- Change the lot number to use the 2nd one
- Mark as done & close the
-> A pop-up appears because the consumed quantity is registered as 30 instead of the 20 that were actually used
Cause
-----
A stock move is automatically created with the manufacturing order for all of the required components. The problem arises when one of these components is tracked by lots. The move line for this component is created using the first available lot found. If this lot isn't sufficient, the remaining necessary quantity is taken from the next lot (through another move line). If the user manually changes the consumed quantity for a lot, it only updates the corresponding line.
When updating the line, it sets 'picked' as True so we can use this field to only use the actually registered consumed quantities for computing the total.
-----
Ticket:
opw-4357996This fixes an invoicing issue where a later tax could be calculated on a base increased by an earlier tax even when that later tax was configured not to be affected. Businesses get more accurate invoice tax amounts and avoid incorrect totals in accounting and related Indian e-invoicing outputs.
Original PR description
**Steps to reproduce:** - Install Accounting - Create a first tax: * Tax Name: Tax1 * Tax Computation: Percentage of Price * Tax Type: Sales * Amount: 20% * Label on Invoices: Tax1 * Tax Group: Tax1 * Affect Base of Subsequent Taxes: [Checked] - Create a second tax: * Tax Name: Tax2 * Tax Computation: Percentage of Price * Tax Type: Sales * Amount: 20% * Label on Invoices: Tax2 * Tax Group: Tax2 * Base Affected by Previous Taxes: [Not checked] - Create an invoice - Add an invoice line - Add Tax1 - Add Tax2 **Issue:** Base amount of Tax2 is affected by Tax1 when it should not. opw-4450494 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr