Daily updates from Odoo
Friday, July 13, 2018
4 changes · master
Enhancements to existing features
File downloads now use modern browser capabilities instead of a hidden iframe workaround. This should make downloads easier to troubleshoot and improve how download errors are detected and reported across supported browsers.
Original PR description
The iframe-based get_file has always been problematic to debug & to handle errors in. The latest issue is #24854 trying to intercept and handle HTTP 504 Gateway Timeout responses, and doing so by…
The iframe-based get_file has always been problematic to debug & to handle errors in. The latest issue is #24854 trying to intercept and handle HTTP 504 Gateway Timeout responses, and doing so by matching the textual content of the response document somehow as the status code is not available when loading stuff in an iframe (which feels *extremely* brittle as it basically assumes an nginx working in an english locale returning a default/non-customised error page). Looking up recent-ish web APIs it turns out we can implement file download without the iframe hack using [XMLHttpRequest extensions](https://caniuse.com/#feat=xhr2), [FileReader](https://caniuse.com/#feat=filereader) to replicate the error handling and either HTML5 a[download], proprietary APIs or browsing data URI to trigger the actual save/save as dialog. Aside from the various download bits/fallbacks, the main sources of complexity are parsing the `Content-Disposition` header to get the "best" filename we can (delegated to a library because it's decidedly non-trivial) and replicating the old error handling scheme for compatibility purposes. Tested in Chrome, Firefox, Safari, IE11 and Edge desktop (though not in depth for the latter 2) as well as Safari/iOS and Android. The main source of interrogation is the error handling as it's not quite clear how to exercise it.
Users now receive a notification when a Mexican electronic invoicing certificate is expired or will expire within 30 days. This helps businesses renew certificates on time and avoid interruptions in invoice processing.
Original PR description
the next 30 days or less.
Based on https://github.com/OCA/web/tree/10.0/web_notify
Add tests for expired certificate
Added test that verify that certificate is to expire
on behalf of VauxooDashboard aggregate values can now use a measure name that differs from the underlying field name. This gives teams more flexibility when configuring dashboards and presenting business metrics in a clearer way.
Original PR description
Sometimes you want to specify a measure that is not the name of the field.
Documentation and clarification updates
The documentation now explains the measure attribute for aggregate views, helping implementers understand how to configure reporting data more clearly. This is a documentation-only update, so it does not change product behavior for end users.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr