Tuesday, September 24, 2024
15 changes · master
Enhancements to existing features
The lock date wizard has been adjusted so exception settings are visually and textually separated from the hard lock date. This reduces confusion for accounting users and makes the labels easier to translate consistently.
Original PR description
- Putting the exception section after the hard lock date field gave the impression the exception was also applicable to the hard lock date, while it isn't. We also add a little indent to it, so that it can be better distinguished from the other settings - Rephrase the exception section a little bit and put more words into the label of selection fields to simplify translation.
Spreadsheet pivot tables now show day-level date headers in a clearer format, such as 01 Jan 2021 instead of locale-dependent numeric dates. This makes reports easier to read and compare across users and regions.
Original PR description
Improve the format of headers with the day granularity in the pivot, from the locale's date format (e.g. `1/1/2021`) to `dd mmm yyyy` (e.g. `01 Jan 2021`). Task: [3613511](https://www.odoo.com/web#id=3613511&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)
Aged Receivable and Aged Payable reports now hide the currency and account columns by default, reducing visual clutter. Users can still enable these details when needed, making routine review easier while preserving access to supporting information.
Original PR description
To simplify the Aged Receivable/Payable reports, we hide the currency and account columns by default. No Task - FP
Kanban card footers now use a slightly smaller default text size across many Odoo apps. This creates a more consistent, compact layout and removes the need for repeated view-specific styling.
Original PR description
Resolved issues and error corrections
The financial budget menu item is no longer limited to debug mode, making it available through the normal interface as intended. This fixes an unnecessary access restriction that could prevent business users from finding budgeting options.
Original PR description
The aim of this commit is removing the debug mode on the financial budget menu item. It was introduced by this commit [[1]], and finally we don't want that. no task id [1]: https://github.com/odoo/enterprise/commit/d96b46bc9d17e279c5d4094270c61e610e09ef36
Code cleanup and technical improvements
This update removes redundant internal data access from Sign kanban views because the same information is already available through the standard context. It helps simplify the way Sign cards are rendered without changing the user experience.
Original PR description
Keys of the user_context are available in the context, so having the user_context available in kanban archs is redundant. There was only 2 usecases, both in sign. This commit removes them such that we can simplify the rendering context of kanban cards by removing the user_context from it. Part of task~3992107
Miscellaneous changes
To reproduce the issue: 1. Create a horizontal group, grouping on "Company" field with a domain matching everything 2. Assign that horizontal group to the Balance Sheet 3. With all the companies active in the selector, open the Balance Sheet 4. Enable the horizontal group ; this should display the column groups accordingly 5. Select a line with non-null values in more than one company; click on the amount displayed in one company's column in order to audit it =====> The tree view that
Original PR description
To reproduce the issue: 1. Create a horizontal group, grouping on "Company" field with a domain matching everything 2. Assign that horizontal group to the Balance Sheet 3. With all the companies active in the selector, open the Balance Sheet 4. Enable the horizontal group ; this should display the column groups accordingly 5. Select a line with non-null values in more than one company; click on the amount displayed in one company's column in order to audit it =====> The tree view that opens also displays lines from other companies; not only the one corresponding to the group we're auditing. It's wrong. This is due to the fact the 'forced_domain' key of the options is added to the result of _get_options_domain() only in _query_get(). The audit does not call _query_get(), and hence never uses the forced domain. We fix it by now simply doing everything in _get_options_domain() directly. Forward-Port-Of: odoo/enterprise#70502
Before this commit, the default font size for kanban footers was 1rem. A lot of kanban views overruled it by using classname `fs-6`. This commit changes the default font-size to .875rem (which is `fs-6`) which allows to remove the classname from a lot of archs.
The room booking page has been corrected so it once again fills the available vertical space. This improves the user experience by preventing the page from appearing visually constrained or incorrectly sized.
Original PR description
Purpose: -------- Currently, the room frontend view no longer occupies the full vertical space of the page. This issue was introduced by [1]. To fix this issue, the wrapper element (`div#wrapwrap`) is removed from the room frontend view. This simplifies the DOM structure and allows the main container to take the full available space. [1]: https://github.com/odoo/odoo/pull/98429 Task-4207291
A tax report could fail because one value was handled in the wrong format during calculation. The fix ensures the value is converted correctly so the report can complete as expected.
Original PR description
We were trying to divide a float by a string. We make sure that the string `net_value` is converted to a float.
### Steps to reproduce: - In the settings enable: Rental Transfers - Create a storable non-rentable product tracked by Serial Number - Register 1 Serial Number in stock say SN001 - Create a rental order for 1 unit of your non-rentble product - Add a lot on your rental order line ### > Traceback: `leaving_move_line.move_id.sale_line_id.return_date <= line.reservation_begin TypeError: '<=' not supported between instances of 'datetime.datetime' and 'bool'` ### Cause of the Issue: S
Original PR description
### Steps to reproduce: - In the settings enable: Rental Transfers - Create a storable non-rentable product tracked by Serial Number - Register 1 Serial Number in stock say SN001 - Create a rental…
### Steps to reproduce: - In the settings enable: Rental Transfers - Create a storable non-rentable product tracked by Serial Number - Register 1 Serial Number in stock say SN001 - Create a rental order for 1 unit of your non-rentble product - Add a lot on your rental order line ### > Traceback: `leaving_move_line.move_id.sale_line_id.return_date <= line.reservation_begin TypeError: '<=' not supported between instances of 'datetime.datetime' and 'bool'` ### Cause of the Issue: Since Commit d014bb68d852fa4dac1d994351dc82dcdff7b545 the availability of rentable produtcs tracked by serial number is computed. However, the `_compute_available_reserved_lots` assumes that the rental order lines have a `reservation_begin` to work properly since it compares these with other 'datetime.datetime'. However, these fields are only sets and hence not `False` for rental lines that is for lines with a rentable product in the rental app: https://github.com/odoo/enterprise/blob/c89e3114f1820750b641ea12676944e8db7888d8/sale_renting/models/sale_order_line.py#L25-L30 https://github.com/odoo/enterprise/blob/c89e3114f1820750b641ea12676944e8db7888d8/sale_renting/models/sale_order_line.py#L53-L56 opw-3839116 Forward-Port-Of: odoo/enterprise#70315
With an MX company setup Create a branch Change the fiscal regime of the branch to Arrendamiento (606). With the branch create an invoice and generate the CFDI Issues: - Regimen Fiscal in CFDI is set to the one of the parent company while it should be the one of the branch - When a PAC certificate is registered in the branch, company name in CFDI will be the branch name while it should always be the root company name opw-4097669 Forward-Port-Of: odoo/enterprise#69411
Original PR description
With an MX company setup Create a branch Change the fiscal regime of the branch to Arrendamiento (606). With the branch create an invoice and generate the CFDI Issues: - Regimen Fiscal in CFDI is set to the one of the parent company while it should be the one of the branch - When a PAC certificate is registered in the branch, company name in CFDI will be the branch name while it should always be the root company name opw-4097669 Forward-Port-Of: odoo/enterprise#69411
Before this commit, validating an order in PoS while offline would trigger a "send failed" alert for the preparation display each time an order was validated. This was redundant if the offline message had already been shown once. opw-4198324 Forward-Port-Of: odoo/enterprise#70494
Original PR description
Before this commit, validating an order in PoS while offline would trigger a "send failed" alert for the preparation display each time an order was validated. This was redundant if the offline message had already been shown once. opw-4198324 Forward-Port-Of: odoo/enterprise#70494
Steps to reproduce: - Start timesheets tour - When reaching step "Click on the cell to set the number of hours you spent on this project.", and clicking on the cell, tour stay at the same step. Source: - When hovering the cell, a new html element came to superpose above the trigger. so the click is done on the new element and not the trigger. Fix: - Add alt_trigger with the new Element. task-4141027 Forward-Port-Of: odoo/enterprise#69836
Original PR description
Steps to reproduce: - Start timesheets tour - When reaching step "Click on the cell to set the number of hours you spent on this project.", and clicking on the cell, tour stay at the same step. Source: - When hovering the cell, a new html element came to superpose above the trigger. so the click is done on the new element and not the trigger. Fix: - Add alt_trigger with the new Element. task-4141027 Forward-Port-Of: odoo/enterprise#69836
Before this commit ================== Some contracts in SendCloud do not have rates. When trying to generate a label, an error occurs because of the missing rate, preventing the label from being created. After this commit ================= This commit ensures no error is returned when a rate can't be fetched from SendCloud. Label creation can proceed without issues. Community PR: https://github.com/odoo/odoo/pull/173791 TaskId: 4012182 Forward-Port-Of: odoo/enterprise#66976
Original PR description
Before this commit ================== Some contracts in SendCloud do not have rates. When trying to generate a label, an error occurs because of the missing rate, preventing the label from being created. After this commit ================= This commit ensures no error is returned when a rate can't be fetched from SendCloud. Label creation can proceed without issues. Community PR: https://github.com/odoo/odoo/pull/173791 TaskId: 4012182 Forward-Port-Of: odoo/enterprise#66976
**Steps to reproduce:** - Install l10n_mx_edi - Switch to a Mexican company (e.g. ESCUELA KEMPER URGATE) - Create an invoice with an invoice date from one month ago - Confirm the invoice - Generate CFDI via "Send & Print" button - A validation error should be raised **Issue:** No document is available in CFDI tab to check the error or retry. **Cause:** A fix had been made to commit the document in case of success, but it had removed the commit in case of failure. https://github.co
Original PR description
**Steps to reproduce:** - Install l10n_mx_edi - Switch to a Mexican company (e.g. ESCUELA KEMPER URGATE) - Create an invoice with an invoice date from one month ago - Confirm the invoice - Generate CFDI via "Send & Print" button - A validation error should be raised **Issue:** No document is available in CFDI tab to check the error or retry. **Cause:** A fix had been made to commit the document in case of success, but it had removed the commit in case of failure. https://github.com/odoo/enterprise/commit/fed4ea40793e5d835f3bf7c0267526bd32075baf opw-4203720 Forward-Port-Of: odoo/enterprise#70484