Daily updates from Odoo
Friday, January 26, 2024
7 changes
3 changes
Enhancements to existing features
Odoo now avoids repeated language checks during common cached reads, improving performance for translated content. It also validates languages when creating, updating, or fetching translated fields, reducing the risk of data being handled in the wrong fallback language.
Original PR description
[IMP] core: better lang check Before this commit, we check if language is valid and active when `env.lang`. 1. SQL f'->>{env.lang}' is safe 2. `env.lang` is frequently called and slow This commit a)…
[IMP] core: better lang check
Before this commit, we check if language is valid and active when `env.lang`.
1. SQL f'->>{env.lang}' is safe
2. `env.lang` is frequently called and slow
This commit
a) removes language check for `env.lang` to improve performance.
The field value reading time for translated field is reduced by 50% when the
field value has been cached.
b) adds language check when necessary
currently when you read/write in inactive or invalid language, you will actually
read/write in en_US. It would be safer to raise an error instead of doing
everything in en_US especially when some rpc read/write script forgets a
language is inactivated in the server
For feature, the added language validation happens when
1. `write` translated fields
2. `create` records with translated fields
3. `fetch` field values for translated fields
For performance the added language validation shouldn't happen when
1. `read` cached translated field value
c) for sake of a) the `env.lang` is not safe anymore
the following commits refactor SQL queries to avoid SQL injection with the help
of `_field_to_sql`
https://github.com/odoo/odoo/pull/142814Planning settings now clearly separate shift swapping from employees unassigning themselves, making it easier for managers to choose the right behavior. Future-dated timesheets are also hidden from validation menus to avoid showing work items that cannot yet be approved.
Original PR description
Before this commit, it was not clear to users that the 'switch shifts' feature existed, and that is it mutually exclusive with the 'allow unassignment' option in the settings. To make things clear, this commit splits the 'allowing unassignment' setting in two: - The 'switch shifts with other employees' option which corresponds to the current behavior when the 'allow unassignment' feature is disabled. It is the default value. - The 'unassignment themselves from shifts' option which corresponds to the current behavior when the 'allow unassignment' feature is enabled. task-3703648
Financial reports now include an option to display amounts in thousands, making large figures easier to read and compare. This helps users review high-level financial results more quickly without changing the underlying data.
Original PR description
Add an option/filter to display amount in thousands. task-3626894
4 changes
Enhancements to existing features
This update improves how payment tokens are created for subscription renewals by including Monthly Recurring Revenue (MRR) information. This allows the system to automatically set appropriate spending limits on payment tokens based on each subscription's actual monthly value, reducing payment processing issues and improving security.
Original PR description
This commit add MRR in `_get_mandate_values` return dict to use it in at time of token creation to set max amount according to MRR of subscription. See also: - https://github.com/odoo/odoo/pull/150410
The payroll dashboard now loads warning messages faster by retrieving them in the background instead of making users wait. This improvement reduces load times and makes the payroll application more responsive for HR teams managing employee payments.
Original PR description
In this PR we improve the usability of a production payroll app where dashboard warnings might take a long time to load by loading them asynchronously using rpc calls. task-3597092
This improvement adds a validation check to determine if a point of sale order can be paid before actually processing the payment. This allows businesses to control when the Pay button is available (for example, disabling it on the Product Screen) without needing to execute the full payment function, providing better control over the checkout experience.
Original PR description
With this change, we can set other conditions easily. Also, it allows us to check if it can be payed without actually executing the pay function, because sometimes we don't want to change the screen but we want to check if the order can be processed for payment. For example, we could disable the Pay Button from the Product Screen --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update applies miscellaneous improvements to Bulgaria's localization module, including adjustments to the Chart of Accounts, tax configurations, and fiscal position settings. These changes ensure the accounting system accurately reflects current Bulgarian regulatory requirements and improves the overall accuracy of financial reporting for Bulgarian businesses.
Original PR description
This commit adds misc changes to CoA, Taxes and Fiscal Positions. Task ID: 3672294 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#150850 Forward-Port-Of: odoo/odoo#149696