Monday, August 19, 2024
14 changes
2 changes
Resolved issues and error corrections
Links used to return from portal or website preview pages now correctly open the Odoo backend instead of trying to load inside the preview frame. This prevents users from hitting errors when moving back from invoice previews to their normal working screen.
Original PR description
With the replacement of URLs to match the new scheme, links to return from portal preview can stop working because their new URL is not recognized as a backend URL. This commit adds the `/odoo/` prefix in URLs identified as belonging to the backend. Steps to reproduce: - Install website & sale. - Go to an Invoice. - Click on Preview. - If you are not in the backend view, click on "Editor". - Click on the link to return to the backend view. => A cross-origin error happened because the backend was being reloaded within the website preview `iframe`. opw-4098566
This update refreshes Odoo's spreadsheet engine with fixes that make spreadsheet behavior more reliable, including clearer handling of empty formulas and corrected display behavior for calculated spill cells. It also improves performance by delaying some export work until users leave the spreadsheet, making the experience smoother.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/fb17f9ca0 [REL] 17.2.21 Task: 0 https://github.com/odoo/o-spreadsheet/commit/6d5b029e2 [PERF] model: export lazily…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/fb17f9ca0 [REL] 17.2.21 Task: 0 https://github.com/odoo/o-spreadsheet/commit/6d5b029e2 [PERF] model: export lazily when leaving Task: 4119536 https://github.com/odoo/o-spreadsheet/commit/3a2d2daca [REF] plugin cell: use a new command "CLEAR_CELLS" Task: 4095732 https://github.com/odoo/o-spreadsheet/commit/cc218809f [FIX] parser: parsing empty string throws meaningful error Task: 0 https://github.com/odoo/o-spreadsheet/commit/bee93a46d [FIX] sheetUi: a spilled cell has no core content Task: 4105162 https://github.com/odoo/o-spreadsheet/commit/cff936f2b [FIX] package: Fix typo in `module` key Task: 0 Co-authored-by: Anthony Hendrickx (anhe) <anhe@odoo.com> Co-authored-by: Alexis Lacroix (laa) <laa@odoo.com> Co-authored-by: Lucas Lefèvre (lul) <lul@odoo.com> Co-authored-by: Dhrutik Patel (dhrp) <dhrp@odoo.com> Co-authored-by: Adrien Minne (adrm) <adrm@odoo.com> Co-authored-by: Mehdi Rachico (mera) <mera@odoo.com> Co-authored-by: Rémi Rahir (rar) <rar@odoo.com> Co-authored-by: Pierre Rousseau (pro) <pro@odoo.com> Co-authored-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
7 changes
Enhancements to existing features
Users can now adjust embedded Knowledge calendars to show only relevant days and hours, reducing empty space and making schedules easier to read. The year view also gains proper scrolling so the full calendar can be viewed reliably.
Original PR description
Define calendar start/end display --- This commit adds new editing options to embedded calendar views. Sometimes a user may want to limit the scope of its calendar to a reduced time interval (i.e.…
5 changes
Resolved issues and error corrections
Define calendar start/end display --- This commit adds new editing options to embedded calendar views. Sometimes a user may want to limit the scope of its calendar to a reduced time interval (i.e. only diplay hours from 09h00 to 17h00 in day scale) to avoid displaying a blank space. To do that, new inputs are introduced in the ItemCalendarPropsDialog which enables the user to select a starting and ending day for a week, and a starting and ending hour for each day. The new inputs are affecting the following options for the calendar: * `slotMinTime`: determines the hour at which the first slot starts * `slotMaxTime`: determines the hour at which the last slot ends * `weekends`: determines if we show the weekend Fixing year display --- This commit adds a scrollbar to the calendar embedded view for the year view, which isn't present. This scrollbar should've been present as the complete year of the calendar cannot be showed in its fullness otherwise. To fix this, the overflow-hidden bootstrap class is now ignored via a CSS rule that unsets its overflow value. This is applied only for embedded calendar views, as the regular view doesn't have any issue. task-3902124
Web Studio links have been updated to use a clearer, more human-readable URL format. This makes shared links and navigation easier for users to understand while preserving expected behavior through updated tests.
Original PR description
This commit modifies existing URLs to the new format so that the URL's become more human readable. Task-3820230
This update improves several accounting workflows, including journal audits, reconciliation, reporting, asset handling, and payment actions. The changes make key information easier to find, reduce clutter in accounting screens, and streamline day-to-day finance operations.
Original PR description
This Pr contains a lot of commit with different scope and improvement: 1. [[IMP] account_reports: audit of…
This Pr contains a lot of commit with different scope and improvement: 1. [[IMP] account_reports: audit of journal_reports](https://github.com/odoo/enterprise/pull/67611/commits/be914dd30aa3b8b11e1f026425f2a5ea7d624cc2): This commit will add some default filter and groupby on the view of the audit of journals. It will also unfold the twos groups automatically thanks to an override of the renderer. It will also clean the view of the audit. 2. [[IMP] account_reports, account_intrastat: change of menu item](https://github.com/odoo/enterprise/pull/67611/commits/bd52011ef87d205e899012e0c50f063b758d8225): This commit will reword some menu items. 3. [[IMP] account_report: annotation styling](https://github.com/odoo/enterprise/pull/67611/commits/991a08323cb326f3383110a1b1d41128571da825): This commit will make the annotation more visible 4. [[IMP] hr_payroll_account, l10n_au_hr_payroll: register payment button](https://github.com/odoo/enterprise/pull/67611/commits/b81e9e4ad61df5d8089e42f37934f66887238129): This commit will change the button register payment to pay. 5. [[IMP] account_reports: journal groups](https://github.com/odoo/enterprise/pull/67611/commits/914ffc770ab8f2f3510d216e9de1867fd4a088bf): This commit will change some things in the filter for journal groups, the display when changing journal group has been modified, by default when coming on a report when having a journal group it's automatically applied and when checking the journal items from a report with journal group selected, the domain is changed. 6. [[IMP] account_accountant: reconciliation improvement](https://github.com/odoo/enterprise/pull/67611/commits/d2e392e21dea167f61b407397b402f3687082d06): This commit will rework the UI of some reconciliation flow. Rework of the automatic wizard. Also remove the matching button. Change of filters. Change in the unreconcile, so that partial reconcile are unlink too. 7. [[IMP] account_reports: general ledger communication](https://github.com/odoo/enterprise/pull/67611/commits/0f67f8b9c80373686a52c3e2a4cb0885aae412c5): In this commit https://github.com/odoo/odoo/commit/0068c71a864407ac6ee621d0c6c3519ec05fc30e we changed the way the name of the move line is computed for receivable. In the general ledger we use the name of the move line for the communication columns, so it needed to be adapted. 8. [[IMP] account_asset: replace one2many to many2many](https://github.com/odoo/enterprise/pull/67611/commits/13a63ad864701f0314b834a49244d543de6a2065): In this commit, we will change the asset_model field to a many2many to be able to generate multiple assets from one invoice. We also added a stat button on the asset to see the linked asset and check if one of the linked asset has been confirmed. Added the filter journal 9. [[IMP] account_accountant: less noise in the accountings screens](https://github.com/odoo/enterprise/pull/67611/commits/e2b151d09f82cfebac49e2a4b048be7a9af6b426): This commit will clean up some view and try to stay consistent with this commit: https://github.com/odoo/odoo/pull/174988/commits/3e3a0d21f21d2636d8c4a1d2262d50600d929a6f 10. [[IMP] *: invert the logic of to check](https://github.com/odoo/enterprise/pull/67611/commits/b21a8367812d6d765f20307dafcdcd99c3144450): This commit will invert the current logic of the "to_check" field and rename it "checked". 11. [[IMP] sale_subscription: redesign of labels journal items](https://github.com/odoo/enterprise/pull/67611/commits/e18949ed8befd190c145e3ed3251e637045a2a69): During this commit: https://github.com/odoo/odoo/commit/7fe72283f2380f08eef970f73bebe6877dcda5e3 We changed a bit the _compute_name by adding a new depends on the ref, which was causing issue for the test_auto_payment_across_time. Since we are writing on the ref in the _subscription_post_success_payment function, the compute was triggered again and so the line name was wrong. The solution we chose is to override the compute and when the line has a sale order line that is from a recurring invoice, we don't compute it again. task: 4058751
Knowledge article URLs now use a clearer, more human-friendly format. This makes shared links easier for users to recognize and understand, while related tests were updated to confirm the new behavior across Knowledge features.
Original PR description
This commit improves the readability of URLs by modifying them to a new, more human-friendly format. Task-3820230
The time off process has been simplified by removing the draft stage from leave requests. This reduces unnecessary steps for employees and managers, making requests move through the approval flow more directly.
Original PR description
The draft state is considered to be a superfluous state that doesn't really add any value to the flow of time off. With this commit it is removed. task-3106305
Resolved issues and error corrections
Customers can now select hourly rental times even when the rental product's minimum duration is configured in another unit. This removes an unnecessary checkout limitation and helps customers complete bookings with the time options they need.
Original PR description
Before this commit, customers could not select hours if the rental minimal duration was not set in hours. Now, the rental minimal duration does not affect the hours' widget.
Saudi Arabia payroll salary rules have been corrected and expanded to better match required payroll calculations. The update helps produce more accurate payslips for Saudi and expatriate employees, including related leave and departure handling.
Original PR description
Ticket ID: [3215965](https://www.odoo.com/odoo/project.task/3215965?cids=14) Modifications to existing salary rules in KSA payroll + adding some new rules.
This update fixes VAT tax report calculations and carryover handling for several SYSCOHADA country localizations. It improves reliability of tax reporting by correcting formulas, labels, and validation rules so carried-forward amounts are applied consistently.
Original PR description
[IMP] l10n_{bf,bj,cd,ci,cm,ga,km,ml,ne,sn,tg}: make report definition more consistent - Doing if_above using EUR as the currency made no sense in those countries. We instead use the domestic currency…
[IMP] l10n_{bf,bj,cd,ci,cm,ga,km,ml,ne,sn,tg}: make report definition more consistent
- Doing if_above using EUR as the currency made no sense in those countries. We instead use the domestic currency (the result is equivalent, since 0 EUR = 0 in any other currency ; it's just clearer)
- specifying rounding=2 on editable monetary value had no effect (on monetary values, the rounding is always made with the decimal places of the domestic currency), and was hence misleading.
----------------------------------------------------------
[IMP] account_reports: Enforce constraint on carryover target
We need to add constraints on the expression label and the carryover_target from account report so that we ensure that it is used correctly.
Currently, it may have happened that when we used the carryover mechanism, we were using the wrong label.
That could create some issues where the carryover would simply not work or partially.
----------------------------------------------------------
[FIX] l10n_bf: tax report: fix line name and formulas
- The report contained two lines numbered 26, while one of them had 27 in its code
- Line "Net VAT amount to pay"'s formula contained BF_OTHER_DEDUCTION twice
- Line "Credit VAT to report"'s formula contained BF_OTHER_DEDUCTION twice, and BF_CANCELLED (grid 25) was missing
We fix all those problems, and rewrite the formula of "Net VAT amount to pay" in order for it to better match the expression provided in the line name (for clarity).
-----------------------------------------------------------
[FIX] l10n_{bf, bj, cd, ci, cm, ga, km, ml, ne, sn, tg}: Fix Carryover for syscohada countries
For some syscohada countries some tax report where using carryover.
The carryover on the tax reports from these countries were not working.
The cause was one, the label of the expression used to target the applied carryover was not prefixed with _carryover_.
And two, is that it had no expression dedicated for carryover with label _applied_carryover and this was causing the report to miss the info tag on the line for the carryover.
task-4110461This fix ensures that when a manufacturing order creates a backorder, any available component quantities are automatically reserved according to the warehouse's reservation rules. Previously, backorders would not reserve available components, requiring manual intervention. This improves warehouse efficiency by automating the reservation process when components become available during production.
Original PR description
**Current behavior:** If a production spawns some backorder which has available component quants in a package, the backorder will not have that quantity reserved automatically. **Expected behavior:**…
**Current behavior:**
If a production spawns some backorder which has available
component quants in a package, the backorder will not have that
quantity reserved automatically.
**Expected behavior:**
This available quantity should be reserved by rule (based on the
manufacturing picking type's reservation configuration)
automatically.
**Steps to reproduce:**
1. Enable packages and 2-step manufacturing, use the default
`at_confirm` option for the manufacturing method's
`reservation_method`
2. Create an MO for 10 of some storable product that has 10 of
some storable product as a component -> confirm the MO
3. In the generated pick operation for the MO, assign the 10
units of the storable product to the move's quantity
4. In barcode, open the picking and manually add 1 of the
components -> put it in a pack
5. Repeat step 3 an additional time
6. Validate the picking -> create the backorder
7. Open the initial manufacturing order in barcode
8. Consume one of the created packaged quants of the component,
ensuring to also add the +1 quantity to the final product
barcode line
9. Validate the MO -> create the backorder
10. In the backend, open the backorder to see that there is 0
quantity reserved
**Cause of the issue:**
In this scenario, the backorder's raw move does not gain any
availability until after the original order is marked done,
after which there is never any logic for the reservation to
occur.
**Fix:**
During the backorder generation and the mark done for the
original order, attempt to assign any backorder productions at
the instant when some component quantity becomes available.
opw-3989977This fix resolves an error that occurred when users tried to autofill pivot table data to the right when columns were grouped by date. The issue was caused by incorrect handling of date calculations during the autofill operation. This ensures users can now properly extend pivot tables with date-grouped columns without encountering errors.
Original PR description
When auofilling towards the right the last colmn of a pivot whose column are grouped by date, we got a traceback. This was due to the fact that we were trying to use the measure string as argument of `increment_date`. Task: [4045799](https://www.odoo.com/web#id=4045799&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)
This fix corrects a bug in the appointment booking system where the capacity calculation was incorrectly set to zero, causing appointments to be automatically accepted instead of pending when they should require manual approval based on booking thresholds. The fix preserves the original capacity value while properly allocating resources, ensuring appointments are correctly marked as pending or accepted based on your configured threshold settings.
Original PR description
A coding mistake was added in d53aae967c5b44b2ca1ed716e90e065fbbe938d4 Indeed, for resource bookings, we decrease asked capacity to allocate the full reserved capacity to available resources. However, it is decreased directly. This means that event values have a 0 asked_capacity, leading in turns to an inexact use of _get_default_appointment_attendee_status, used to determine whether the status should be 'accepted' or 'needsAction' depending on the manual treshold percentage if set, asked capacity and existing bookings. Indeed, the asked_capacity will not be counted when computing the total reserved percentage. In practice, this means that events crossing the treshold will be automatically 'accepted' instead of 'needsAction' The fix creates another variable to avoid the issue and adds a test. Task-4084727
Fixed an issue where bank statement imports involving currency exchanges were not properly accounting for fees. The system now correctly reads and includes the full amount that incorporates all applicable exchange fees, ensuring accurate financial records.
Original PR description
Ensure that, when importing amounts involving currency exchanges, the system reads the amount that includes the fees. (New behavior confirmed with CHKL) opw-3999490 Forward-Port-Of: odoo/enterprise#68385 Forward-Port-Of: odoo/enterprise#67879