Daily updates from Odoo
Wednesday, June 5, 2019
5 changes
Enhancements to existing features
Odoo now loads automated test scripts only when test mode is enabled, reducing unnecessary JavaScript on normal pages and improving page load performance, especially on the website frontend. Debug/test mode also persists across navigation via the user session, making testing more reliable without adding special links everywhere.
Original PR description
Coming with https://github.com/odoo/enterprise/pull/4281 This commit goal is to encapsulate every tour-test into a separate assets bundle that would be called only during tests (command line) or by…
Coming with https://github.com/odoo/enterprise/pull/4281 This commit goal is to encapsulate every tour-test into a separate assets bundle that would be called only during tests (command line) or by URL (debug=tests). That way, a lot of .js files would not be loaded anymore uselessly outside test mode and will speed up the page loads (especially in the frontend as the backend do not reload the page anyway). In order to do that, we needed to propagate the `debug` state from page to page. Otherwise, every page change during a test would simply lose the debug mode and the test would stop as the test assets would not be loaded. As we could not add the `&debug=tests` on every link (either hardcoded or preprocess during the rendering), it has been decided to store it in session. Technical summary: 1. `debug` state (currently only stored in URL) will be stored in session. Either when adding the `debug` param in URL (handled with _dispatch) or by starting Odoo with `test-enable` or `test-file` (handled by session init). 2. Once activated (and so set in session), debug mode will be remain activated even if not visible in URL (after a page navigation eg). To remove it, set its value to nothing, `debug=`. That will exit debug mode (whatever mode it is: debug, assets, tests). 3. As tour-test files are now in a separate bundle, every layout (when needed) should `t-call="web.compiled_assets_tests"`. As it would be redundant and verbose, no `t-if` is needed on the t-call to load it only in test debug mode. That will be handled by `compiled_assets_tests` that will actually do the conditionnal t-call-assets to web.assets_tests, if tests debug mode is activated. 4. In addition to separating the tour-tests files in a separate bundle, we also moved those files to a specific folder under /static/tests/tours next to QUnit tests. 5. Also, tour files will be moved in a specific folder /static/src/js/tours for cleanness purpose (those files will still be kept in their 'normal' assets as needed outside test mode since it is tours).
Point of Sale payment references now include the order ticket number printed on the receipt. This makes it easier for staff to match customer-known ticket numbers with payments during manual reconciliation.
Original PR description
Before this commit, when creating a payment from a pos, the reference was: Main/0000: After this patch, it is now: Main/0000 - Order 00000-000-0000 The number of the ticket is useful as it what is printed on the ticket and what the customer knows (when trying to reconcile order and payment manually) Closes odoo/odoo#33696
The website forum index has been redesigned with a more visual card layout and header, making it easier for visitors to browse available forums. Forum managers can now add images to individual forums, helping each forum stand out and improving the overall presentation.
Original PR description
it cool -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update reorganizes automated test and guided tour files into a clearer structure and connects them to a dedicated test asset bundle. It also makes debug settings persist through the user session, reducing repeated setup and improving reliability for development and testing workflows.
Original PR description
Counterpart of https://github.com/odoo/odoo/pull/33213
Document thumbnails are now generated using a more reliable image processing flow that better handles different image types. If thumbnail creation fails, the system now safely records that no thumbnail is available instead of risking incorrect results.
Original PR description
rebase-ff