Daily updates from Odoo
Tuesday, May 6, 2025
6 changes
2 changes
Enhancements to existing features
Returns are now created only when their deadlines are relevant: not before the company account opening date and within the next year. This helps avoid unnecessary or outdated return records and keeps Belgian reporting data clearer, with a minor wording correction for the Belgian collection center name.
Original PR description
Now, before generating a return, we compute the deadline of that return. If the return is before the account opening date, we do not generate it. We also only keep return with a deadline within a year from now. In continuation of https://github.com/odoo/enterprise/pull/81569
Users can now open return attachments directly in a preview instead of downloading them first. This makes reviewing related documents faster and keeps the workflow smoother within Odoo.
Original PR description
Clicking on an attachment should preview the attachment without downloading. task-4627315
1 change
Enhancements to existing features
The web client now opens without waiting for translation data to be recalculated every time. This reduces unnecessary server work and should make Odoo feel faster, especially for users working in translated interfaces.
Original PR description
Before this commit, a "translation hash" was calculated and added to the session_info. The method used to compute the hash needs to compute the translations, which can be slow, and only the hash is…
Before this commit, a "translation hash" was calculated and added to the session_info. The method used to compute the hash needs to compute the translations, which can be slow, and only the hash is cached. This hash is then used by the client to fetch the translations twice. Once directly in the page template, and once in the localization service. This is done to get the translations as quickly as possible. Normally, the browser cache should prevent from the second request from being made (since the hash is the same), but this doesn't always seem to work as expected, as all requests are started as soon as possible, so if there is a small delay in the first request the second is also be made. So in the worst case scenario, translations are calculated 3 times by the server, and the web client waits for them to finish before rendering. Now, a translation hash is no longer calculated to be placed in session_info, speeding up session_info and the page. The translation hash is sent to the web client with the translations themselves. Only the first time, the web client will waits for the translations to be rendered. The next time the user accesses the web client, the cached translations are used. Each time the user accesses the web client, the translations are fetched. If a cached translation exists, the hash of the cached translation is used to fetch the translations. The new route computes the current hash of the translations, compares it with the one it received and if it's the same simply replies that there has been no change; if the hash is different, it replies with the computed translations and the new hash. Note that when the hash is computed, the translations are kept in a cache to avoid having to compute the translations twice. opw-4737228 Co-authored-by: Rémy Voet <ryv@odoo.com>
3 changes
Enhancements to existing features
Odoo now lets businesses choose which taxes should be treated as allowance charges and assign the appropriate standard codes when generating UBL electronic invoices. This helps produced e-invoice files better match official requirements, reducing compliance issues with partners or tax authorities.
Original PR description
This commit aims to better align the ubl files generated by Odoo with the official standard by adding the flexibility for users to choose which tax are allowance charges and their accompanied codes. task: 4660683
Employees using flexible work schedules can now request custom-hour leave without being capped by the average hours per day. This makes time-off requests better match actual flexible working arrangements and reduces unnecessary restrictions for HR and employees.
Original PR description
- when an employees has a flex calendar the custom hours leaves should not be limited to the avg_hours_per_day Task: 4744248 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Hong Kong payroll accounting setup has been revised so payroll entries are mapped to the appropriate accounts more accurately. This helps businesses using Hong Kong payroll produce cleaner accounting records and reduces the need for manual corrections.
Original PR description
See also: odoo/odoo#208257