Monday, April 14, 2025
3 changes · saas-18.2
Enhancements to existing features
Data imports now use fewer database checkpoints during processing, reducing overhead especially for larger files. This should make imports more efficient while keeping the same rollback behavior when errors occur.
Original PR description
Create less savepoints during import of data. Notably, avoid creating a savepoint per record. We can use only one savepoint in the import loop because if we have any errors, we will rollback anyways. task-4723964 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Customers using self-ordering QR codes that already include a table number are now taken directly into the order flow without being asked to choose a table again. This removes an unnecessary step, making the dining experience faster and reducing confusion for guests.
Original PR description
After this PR: ====== - If the QR code includes the table ID, users will no longer need to select a table manually. Task: 4663940
Time-based automations no longer create a database checkpoint for every processed record, which avoids potential slowdowns during larger runs. If an automation fails, the process now rolls back and reports the error so administrators can fix the faulty automation.
Original PR description
For correctness purposes, the function was using a savepoint for each treated record. However, creation of more than 64 savepoints in a single transaction may slow the database. Therefore, we remove the savepoints and raise the exception if the base automation is in error. Current behavior before PR: Savepoint created for each record. Desired behavior after PR is merged: Rollback and raise the exception. task-4723964 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr