Monday, June 17, 2024
6 changes · saas-17.2
Resolved issues and error corrections
The Philippine localization now uses the supported tax calculation process when generating BIR 2307 files. This prevents an error when users download the XLS certificate for vendor bills with withholding tax, allowing the document to be generated as expected.
Original PR description
Steps to reproduce: - Install l10n_ph modules - Configure Vendor Tax ID - Create Vendor Bill - Set the Vendor with Tax ID - Set a invoice lines with withholding tax - Action > Download BIR 2307 XLS Current behaviour: - Exception raised Expected behaviour: - Generate a BIR 2307 XLS file Explanation: From SaaS 17.2+, account.tax doesn't have _compute_amount anymore. It is replaced by compute_all method. opw-3991609
Duplicating a website page now creates a unique internal page identifier, preventing errors when opening or editing the copied page. This makes page duplication reliable for website editors and avoids disruptive traceback errors after refresh.
Original PR description
Since [1], the `copy` and `copy_data` methods have been refactored to handle recordsets. This change broke the `clone_page` method in the Website Page model, causing the duplicated page to have the…
Since [1], the `copy` and `copy_data` methods have been refactored to handle recordsets. This change broke the `clone_page` method in the Website Page model, causing the duplicated page to have the same view key as the original. The view key must be unique. Steps to reproduce: - Navigate to Website. - Click on the "Site" menu > "Pages". - Click on "New" and select the "blank page" template. - Enter a name for the page (e.g., NewPage1). - Click on "Create". - When the editor opens, click on "Discard". - Click on the "Site" menu > "Pages" again. - Select the checkbox next to NewPage1. - Click on "Actions" > "Duplicate". - Enter a name for the duplicated page (e.g., NewPage2) and click on "Ok" - Refresh the page (F5). - The new page appears: click on it. - Edit the page by clicking on "Edit" in the top-right corner. - Bug: Traceback error occurs. This commit fixes the bug by appending a unique ID to the duplicated view key. opw-3936237 [1]: https://github.com/odoo/odoo/commit/4ac2702c31f0e95f33f9ad554e7350bef9dab8bd
This fixes Norwegian localization tax setup by using the correct term “medium rate” and correcting which accounts are assigned to certain taxes. It helps businesses using Norwegian accounting avoid inaccurate tax reporting and better align with official SAF-T expectations.
Original PR description
- Replace "middle rate" & "average rate" by "medium rate" - Fix misusage of accounts in taxes See: https://github.com/Skatteetaten/saf-t fixes odoo/odoo#161396 task-3864178 Co-Authored-By: Henrik Norlin <henrik.norl@gmail.com> **Enterprise PR:** odoo/enterprise#64363
This fix ensures that opening older-format Odoo links no longer removes the previous record from the browser history. It also makes internal links work more smoothly when pasted links use a different http/https protocol, reducing navigation disruption for users.
Original PR description
- On a record A; - Click on a link to open a record B (with an old style URL); - The record B is open; Before this commit, the record A is missing on the browser history. This occurs because, when an old style URL is converted into a canonical URL, a replacement of the current URL is done. This replacement was done to update the old URL when the URL was copy/paste on the browser. In this particular case, the replacement is not necessary, because the current URL is the one of the record A. Doing the replacement, will remove the record A from the browser history. Now, the URL retro-compatibility will only update the URL, if the URL in the browser is the one with the old style.
This fixes an issue in Odoo's web testing mock server so it correctly checks the expected override registry when falling back to a parent call. The change helps prevent inaccurate automated test behavior, improving confidence in future updates without affecting day-to-day users.
This fix improves the internal web testing framework so test callbacks can correctly pass control to earlier registered handlers. It helps Odoo's automated tests better mirror expected behavior and reduces the risk of false failures during development.
Original PR description
Before this PR, only model-defined methods could be called by the `parent` helper function given to callbacks of `onRpc` in tests. This meant that callbacks registered through the `mock_rpc` registry couldn't use this inheritance system (i.e a callback defined after another couldn't call the previous one). This PR makes it so that all listeners are aligned in a queue and a call to `parent` will simply call the next callback (eventually falling back to the model-defined methods), allowing registry-defined methods to be called in between. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr