Wednesday, August 14, 2024
4 changes · 17.0
Resolved issues and error corrections
Fixed an issue where logging a note with a selected template could create an empty message if the template content was still loading. This helps ensure users' notes include the intended template text even when actions happen quickly.
Original PR description
Problem: When selecting a template while logging a note, if the template is not fully loaded (body is still empty), the message will have an empty body. Side note: If the user selects a template and logs an empty message (empty body), it will revert to the template body. However, this is an extreme edge case that is unlikely to occur. Steps to reproduce: - Open a product. - Log a note (full composer). - Select a template and log the note while the body is still loading (the body is empty). opw-4084921 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixes a display issue where attached document previews could overlap the leave details window in fullscreen calendar views. This keeps time off information readable when users open records with attachments.
Original PR description
Steps to reproduce: - Time off > Calendar view > Double click on a day - Sick leave > Attach document > Save - View the leave from calendar The attachment preview window overlaps the leave modal information, making it unreadable. The preview is only displayed above large media breakpoints (> 1550px) so make sure to fullscreen. In 16.0 we used a custom element to render the preview which is no longer available https://github.com/odoo/odoo/commit/824024f8aaa4a5419646d4eec7f529277869ceac#diff-a5f278935504f8e1b287b52fbb88f6e58dedc727ec2c7f1a6a04a67202f18fdaR63. opw-4088218 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixed an inventory adjustment issue where setting a counted quantity to zero could leave the line incorrectly marked as outdated. This helps warehouse teams see accurate inventory differences and avoid confusion during stock counts.
Original PR description
Steps to reproduce the bug: - Go to the inventory adjustments: - Update any quant by setting the counted quantity to 0 Problem: The line is colored yellow because “is_outdated” is updated to True due to the update of “inventory_quantity”. The “_compute_inventory_diff_quantity” is not triggered because “inventory_quantity” is initially 0, so the dependencies do not detect any change. opw-3946693
Fixed an issue where opening bank reconciliation for a company outside the currently displayed company hierarchy could fail in debug mode. The reconciliation view now handles the missing journal balance safely, helping users continue their accounting workflow without an error.
Original PR description
### Steps to reproduce 1. Install `account_accountant` 2. Select two companies in the company selector 3. Navigate to the accounting dashboard 4. Enable debug mode 5. Click 'Reconcile x Items' on the bank journal for the company not displayed in the company selector You should be met with a traceback. ### Cause https://github.com/odoo/enterprise/blob/3bb2fa7944d296692c6858fa9661bc54bcd94659/account_accountant/models/bank_rec_widget.py#L1575-L1583 In `collect_global_info_data`, the system fails to get the journal balance when the selected journal does not belong to the current company/branch hierarchy, returning 'false'. When debug mode is enabled, the system performs validation on components props. Here, validation fails because `BankRecGlobalInfo.journalBalanceAmount` expects a string, but receives `false` instead. opw-3842914