Tuesday, October 15, 2024
6 changes · 18.0
Enhancements to existing features
The portal now checks that a selected state or province matches the chosen country and requires it when the country’s rules make it mandatory. This helps prevent incorrect or manipulated address data from being submitted, improving data quality and reducing downstream errors.
Original PR description
Description of the issue/feature this PR addresses: Currently, there is no validation ensuring the selected state corresponds to the chosen country, nor checks that enforce a state selection when required by the country. Current behavior before PR: Users can select a state that doesn't belong to the selected country. No validation exists to require a state selection when the country mandates it. Desired behavior after PR is merged: The selected state will be validated to ensure it belongs to the selected country. A state will be mandatory when the country requires it, and appropriate error messages will be shown when these conditions are not met. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The portal now checks that a selected state or province matches the chosen country and requires it when the country rules say it is mandatory. This helps prevent incorrect or manipulated address data from being submitted, improving data quality and reducing downstream errors.
Original PR description
Description of the issue/feature this PR addresses: Currently, there is no validation ensuring the selected state corresponds to the chosen country, nor checks that enforce a state selection when required by the country. Current behavior before PR: Users can select a state that doesn't belong to the selected country. No validation exists to require a state selection when the country mandates it. Desired behavior after PR is merged: The selected state will be validated to ensure it belongs to the selected country. A state will be mandatory when the country requires it, and appropriate error messages will be shown when these conditions are not met. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Users can no longer manually create, update, or delete analytic items that are tied to journal items. This keeps analytic reporting aligned with the journal item's analytic distribution and prevents mismatched accounting data.
Original PR description
The analytic items related to a journal item are generated from the journal item's analytic distribution. But it is possible for a user, by accessing the analytic items view, to create/updtate/delete analytic items related to a journal item. The analytic distribution is then unsynced with the analytic items. With this commit, it is no longer possible, so the analytic items of a journal item will always reflect its analytic distribution. task-3977961
Developers can now adjust which website content containers are monitored for third-party iframe blocking through a dedicated website method instead of changing hard-coded logic. This keeps consent protection behavior intact while making customer-specific website customizations cleaner and safer to maintain.
Original PR description
Commit [958b41c4] added support to prevent 3rd-party iframes from loading without proper consent. As some iframes are built client-side, preventing them from loading required getting their container by their class. Those classes are stored in a set. Allowing any user to update that set does not make sense, but to make it possible for developers to update it through custos, this commit retrieves it from a method on the Website model instead of hard-coding it in the middle of a function. [958b41c4]: https://github.com/odoo/odoo/commit/958b41c4acec7e1700ca4d6e0b25ee0ad2aac9f1 task-4045932
Accounting reports can now group results by account code, making financial information easier to review and compare. This supports clearer reporting for businesses that rely on account-code based analysis.
Original PR description
PoC for TSB.
This update aligns the accounting app with a related platform change that prevents accidental changes or deletions of analytic entries tied to journal items. It helps preserve the integrity of accounting data while still allowing approved system processes to make necessary updates.
Original PR description
Adapt to community PR, which add a context key requirement in order to delete an analytic item related to a journal item. Community PR: odoo/odoo#182608 task-3977961