Daily updates from Odoo
Friday, December 19, 2025
6 changes · saas-18.2
Resolved issues and error corrections
This update resolves an issue where multiple lines were being created for a single batch during the 'put in pack' process, leading to incorrect inventory reporting. The fix ensures that each batch creates a single line in the picking, accurately reflecting the delivered quantities. This improves inventory accuracy and reduces potential discrepancies.
Original PR description
**Steps to reproduce:** - enable "packages" and "batch transfers" settings - open wharehouse management/operation type - select internal transfer - check "automatic batch" and group by "contact" -…
**Steps to reproduce:** - enable "packages" and "batch transfers" settings - open wharehouse management/operation type - select internal transfer - check "automatic batch" and group by "contact" - create two storable product with an on hand quantity of 10 - create a an internal transfer for the first product for a qty of 10 - mark it as to do - do the same for the second product and make sure that it's the same contact - open barcode and select batches - select the last batch created - scan WH-STOCK - enter and confirm a quantity of 4 for each line - click on put in pack (at this step we can already see that the two new lines created are associated wit the second picking, even though it should be one line per picking) - click on the +6 on each line and click on put in pack - validate **Current behavior:** - a back order has been created for the first picking - the first internal transfer has only delivered 4 units of the first product - the second internal transfer has delivered 10 of the second product and 5 of the first product **Expected behavior:** both pickings should have delivered 10 of their product **Cause of the issue:** The lines created when clicking on "put in pack" for the first time are both associated with the second picking because the line split: https://github.com/odoo/enterprise/blob/898e3e47cfe3b86230da2b146960983d7ad144d0/stock_barcode/static/src/models/barcode_picking_model.js#L514 and the picking_id of the new line is set to the values provided by the `_getNewLineDefaultValues` as the picking_id of the last selected `line`: https://github.com/odoo/enterprise/blob/24b4e49dbe16cb8bd40170abfc089dd64c3f34dd/stock_barcode_picking_batch/static/src/models/barcode_picking_batch_model.js#L280-L281 rather than from the values of the initial line it is split from. opw-4952964 Forward-Port-Of: odoo/enterprise#92530 Forward-Port-Of: odoo/enterprise#91378
This update resolves a bug that occurred when multiple CAF documents were active within a document type, causing errors when opening invoices. The fix prioritizes the CAF with the lowest start number, ensuring gaps in document numbering are correctly filled and preventing system instability. This improves the reliability of invoice processing.
Original PR description
In #92208 the CAF system was improved to find the next starting value in the right sequence if there are multiple in the system. If no CAFs are found, it will reset to the document types starting…
In #92208 the CAF system was improved to find the next starting value in the right sequence if there are multiple in the system. If no CAFs are found, it will reset to the document types starting number. This worked except in the case where there are multiple CAFs that are currently marked active in a document type. As it tries to access `caf.start_nb` it hits an ensure_one() which throws a traceback whenever you open most account.moves on the DB. Steps to reproduce: - Modify the CAF for Doc Type 33 (Electronic Invoices) to have a smaller range than 1 - 999,999 (1 - 5) - Create Two new CAF files also for Doc Type 33 that start after this value (6 - 10 and 11 - 15 for example). - Mark the original to be spent via cancelling it and try to open an invoice. It will find both of the new CAFs and try to get the start_nb of the recordset. In discussion with the PO, when we have multiple CAFs, we should pick by the lowest start number as it will allow for any gaps that might exist be filled. opw-5414350 Forward-Port-Of: odoo/enterprise#102385
This update ensures that all CFEs (Uruguayan vendor bills) are now processed when an XML file is uploaded to a purchase journal. Previously, only the first CFE was handled, leading to potential data loss. This enhancement improves the accuracy of vendor bill synchronization for our Uruguayan clients.
Original PR description
When an uruguayan xml file is uploaded on a purchase journal it could contain the information of more than one CFE but before this commit only the first CFE was processed. Now all the CFEs are processed. Take in consideration this comment https://github.com/odoo/enterprise/pull/86829#discussion_r2490754143 Task Adhoc side: 60187 Task latam side: 1371 Forward-Port-Of: odoo/enterprise#99334
A recent test failure has been resolved to ensure accurate accounting for employee work orders. The issue stemmed from a miscount of analytic lines created during a test setup, triggered by a specific configuration of employee calendar data. This fix corrects the underlying logic to prevent the inaccurate record count.
Original PR description
fixing runbot error https://runbot.odoo.com/odoo/runbot.build.error/234639 on test test_mrp_analytic_account_employee_from_widget introduced by this PR https://github.com/odoo/enterprise/pull/85517
**cause of the error:**
Because there is a resource.calendar.leave without calendar_id,
without resource_id and at a date after today :
during the setupclass, when the employee is created,
_create_future_public_holidays_timesheets() creates an account.analytic.line.
So at the end of the test ,
self.env["account.analytic.line"].search([('employee_id', '=', self.employee1.id)])
returns 2 records instead of 1.
runbot-234639
Forward-Port-Of: odoo/enterprise#102338
Forward-Port-Of: odoo/enterprise#102282This update corrects a technical issue in the accounting system that was leading to inaccurate deferred revenue entries. The change ensures the system correctly utilizes deferred type accounting, improving the reliability of financial reporting. This resolves a potential discrepancy in revenue recognition.
Original PR description
In c3bd8e44546df21c51914a560a28a739f55cca21, a forward-port of 0a6bc3710ee1bfdf10bfd3da7d6e24fd190432e6, the `deferred_expense_amount_computation_method` was always used instead of relying on the deferred type opw-none Forward-Port-Of: odoo/enterprise#102517
This update ensures that document previews automatically open when a link is shared, regardless of the user's default view (list or kanban). Previously, the preview only opened when viewing the document in the kanban view. This improvement provides a more consistent and user-friendly experience for sharing documents.
Original PR description
Bug === If the user has the list view as his default view, if we share him a document, the preview is not opened. After this commit, the preview is opened like in the kanban view, and the document is selected. Task-5361212