Thursday, December 7, 2023
2 changes · 17.0
Enhancements to existing features
When the restaurant point-of-sale app is installed, the default demo shop is automatically archived if it has not been used in a session. This keeps restaurant databases cleaner by hiding an irrelevant sample shop before it creates confusion for users.
Original PR description
When restaurant is installed the demo shop is archived if no session has been made. 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
This update adds a new integer rounding feature to financial reports, allowing amounts to be rounded according to country-specific requirements for tax submissions and compliance reporting. Users can now toggle rounding on or off when viewing reports for audit purposes, while printed reports will always apply the required rounding to ensure regulatory compliance.
Original PR description
In some countries, some reports (typically tax report or EC Sales List) need to be submitted to the state with rounded amounts (the exact rounding strategy possibly varying from one country to the…
In some countries, some reports (typically tax report or EC Sales List) need to be submitted to the state with rounded amounts (the exact rounding strategy possibly varying from one country to the other). So far, we did support that. In such cases, aggregations should be computed on the rounded values, so doing something in format_value was not enough. We solve this by introducing a new mechanism controlled from the options: integer rounding. This will be used in future commits to enforce such roundings, by calling the provided helper in a custom handler linked to the report, in _custom_options_initializer. When the option is enabled, a new filter is displayed in the exra options, allowing to disable integer rounding. This way, users wishing to audit the details of the report don't loose precision. When printing the report, though, integer rounding is always enforced on reports setup to use it. Note that using this option key on reports using a _dynamic_lines_generator will require case-by-case management of it within the custom code ; it's not supported automatically for them (since they don't use engines). This will change in master, but requires additional changes on the moment formatted values are computed (that are planned to land in master in the near future). Forward-Port-Of: odoo/enterprise#52174 Forward-Port-Of: odoo/enterprise#51414