Wednesday, March 11, 2020
3 changes · master
Resolved issues and error corrections
This fixes an issue that could interrupt cleanup of Latin American invoice documents when related accounting entries were removed. The change uses the correct purchase document check, making the process more reliable and reducing the risk of errors during record deletion.
Original PR description
The `type` field was renamed `move_type` in d675dbaa4c7174591e0e7c1a3caf3e76877312ce but the forward-port #44415 of #43312 re-added a use of the old `type` name, which breaks if an account.move is unlinked while l10n_latam_invoice_document is unlinked (and there are related moves to update). Instead of renaming the field, use the proper utility method for the category (purchase) provided by account.move, that should be more reliable and make for clear code.
The website editor now closes open dropdowns and widgets when a user clicks outside them. This prevents menus from staying open unexpectedly, making editing pages feel cleaner and less confusing.
Original PR description
Description of the issue/feature this PR addresses: Purpose:- - The dropdown doesn't closeup when click outside it. Specification:- - For fulfil this purpose, make dropdown able to close up when click outside of the dropdown menu PR #46298 task-2196789
This fixes an issue where some uploaded files could be misidentified because they were processed as if they were base64 encoded. Users should see fewer incorrect upload errors, especially for files like spreadsheets.
Original PR description
If we pass a non base64 binary file, the function convert_to_column may not work as expected. Indeed, with b64decode, all characters that are neither in the normal base-64 alphabet nor the alternative alphabet are discarded prior to the padding check. The first decoded characters may not be representative of the original file, so the function guess_mimetype will return a wrong mimetype. For example, a .xlsx file will be detected as SVG file and an exception will be raised if the user isn't admin. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr