Daily updates from Odoo
Navigate
Branch
Monday, August 22, 2022
16 changes
Enhancements to existing features
This update brings the embedded spreadsheet engine up to date with several fixes for charts, headers, selections, links, and visual alignment. Business users should see more reliable spreadsheet editing, clearer display on high-resolution screens, and fewer layout issues when working with reports and dashboards.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/77111fd4 [REF] chart: remove side panel type from state https://github.com/odoo/o-spreadsheet/commit/6d6b7ab3 [FIX]…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/77111fd4 [REF] chart: remove side panel type from state https://github.com/odoo/o-spreadsheet/commit/6d6b7ab3 [FIX] header_visibility: delete headers in the correct order https://github.com/odoo/o-spreadsheet/commit/acf3a46b [REF] header_visibility: add test for grid manipulations https://github.com/odoo/o-spreadsheet/commit/d0aa2e23 [MOV] tests: header visibility tests to their own file https://github.com/odoo/o-spreadsheet/commit/58aae450 [FIX] header_size: shift computed sizes when deleting rows https://github.com/odoo/o-spreadsheet/commit/74973601 [FIX] header_size: shift sizes in the correct order https://github.com/odoo/o-spreadsheet/commit/990c9d2c [REF] helpers: clean default cell height API https://github.com/odoo/o-spreadsheet/commit/f5d9d7be [FIX] spreadsheet: figure displayed above scrollbar placeholder https://github.com/odoo/o-spreadsheet/commit/cf27547d [FIX] chart panel: black color picker border https://github.com/odoo/o-spreadsheet/commit/1453018d [REF] header_size: compute height lazily https://github.com/odoo/o-spreadsheet/commit/b742d1e9 [REF] cells: faster getCellById https://github.com/odoo/o-spreadsheet/commit/dcc535a9 [REF] model: faster command deep copy https://github.com/odoo/o-spreadsheet/commit/78cf51a4 [FIX] selection: allow to select columns/rows inside a merge https://github.com/odoo/o-spreadsheet/commit/fb0d028e [IMP] link: change style of links https://github.com/odoo/o-spreadsheet/commit/12533287 [FIX] chart: blurry chart on screen with devicePixelRatio != 1 https://github.com/odoo/o-spreadsheet/commit/c0838b32 [FIX] color scale: wrong color border in side panel https://github.com/odoo/o-spreadsheet/commit/37bdbd59 [FIX] border tool: misaligned border icons https://github.com/odoo/o-spreadsheet/commit/899eb58e [FIX] figures: positions are not wysiwyg
The VoIP module was updated to use a cleaner internal setup for its model definitions. This reduces technical debt and helps keep the feature easier to maintain without changing the user experience.
Original PR description
Community: https://github.com/odoo/odoo/pull/98549
This update refreshes Odoo’s spreadsheet component with several usability fixes and performance optimizations. Users should see clearer charts and links, better selection behavior around merged cells, more accurate figure placement, and smoother spreadsheet interactions.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/f5d9d7be [FIX] spreadsheet: figure displayed above scrollbar placeholder…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/f5d9d7be [FIX] spreadsheet: figure displayed above scrollbar placeholder https://github.com/odoo/o-spreadsheet/commit/cf27547d [FIX] chart panel: black color picker border https://github.com/odoo/o-spreadsheet/commit/1453018d [REF] header_size: compute height lazily https://github.com/odoo/o-spreadsheet/commit/b742d1e9 [REF] cells: faster getCellById https://github.com/odoo/o-spreadsheet/commit/dcc535a9 [REF] model: faster command deep copy https://github.com/odoo/o-spreadsheet/commit/78cf51a4 [FIX] selection: allow to select columns/rows inside a merge https://github.com/odoo/o-spreadsheet/commit/fb0d028e [IMP] link: change style of links https://github.com/odoo/o-spreadsheet/commit/12533287 [FIX] chart: blurry chart on screen with devicePixelRatio != 1 https://github.com/odoo/o-spreadsheet/commit/c0838b32 [FIX] color scale: wrong color border in side panel https://github.com/odoo/o-spreadsheet/commit/37bdbd59 [FIX] border tool: misaligned border icons https://github.com/odoo/o-spreadsheet/commit/899eb58e [FIX] figures: positions are not wysiwyg
Resolved issues and error corrections
This update replaces an outdated background style reference that no longer exists. It helps keep Helpdesk and Studio screens displaying consistently after earlier styling changes.
Original PR description
`bg-muted` as been replaced by `bg-200` in odoo/odoo#97051, but there are still non-converted ones.
The product form now displays planning-related fields in the correct alignment when a product is set as a service. This removes a visual inconsistency in Sales and makes the form easier for users to read and configure.
Original PR description
Step to reproduce:
1. Open Sales
2. Go to product form view
3. Set 'service' as product type
The planning_role_id field is not correctly aligned with the
planning_enabled one: https://nimb.ws/6F24re => bugTimesheet and project pivot views now correctly show the option to insert data into a spreadsheet. This fixes a missing button so users can send pivot analysis to spreadsheets without needing a workaround.
Original PR description
Earlier, timesheet pivot view was not able to render "Insert in spreadsheet" button. The issue appears to be in the method of appending pivotView in code. It was using deep copy technique while referring to pivotView, resulting in avoiding the changes made by our button template. Changing the following to shallow copy mode solved the issue, as now it's loading the changes of custom panel on top as well as the button template. Task-2936554
Features or functions removed from Odoo
This change removes sample company data and partner tax IDs from the Mexico reports module because they are no longer needed. It keeps demo information simpler and better aligned with current Mexico localization requirements, with no expected impact on normal users.
Original PR description
- demo data for companies no longer needed because a specific company in Mexico is already added. - partner VATs removed because it's not required for foreign partners X-original-commit: dc9c047130574ef01b18907897ea96f295227931
Code cleanup and technical improvements
Several accounting and localization modules now share a common way to load and validate XML schema files. This reduces duplicated maintenance work and helps keep electronic reporting and invoicing validations consistent across countries.
Original PR description
The following modules all use XSD files to validate XML.
- account_saft
- l10n_{cl_edi, lu_reports, mx_reports, mx_edi, nl_reports, no_saft, pe_edi}
The goal is to refactor them in order to centralise their use of XSD loading and validation. By overriding methods in ir.attachment, modules can personalise the way they load their XSD files and then validate with them.
See https://github.com/odoo/odoo/pull/89145 for more details.
task id=2782053
related task id=2230702Miscellaneous changes
In commit [1], we removed the warning messages for Swiss companies because they were not relevant. However, it was still possible to generate european credit transfers if all conditions were met. In commit [2], we refactored and improved the way the errors were displayed with a dedicated wizard instead of a UserError message. However, we forced the use of generic credit transfers for Swiss companies at the same time. This behavior is not correct as Switzerland is part of the Single Eu
Original PR description
In commit [1], we removed the warning messages for Swiss companies because they were not relevant. However, it was still possible to generate european credit transfers if all conditions were met. In commit [2], we refactored and improved the way the errors were displayed with a dedicated wizard instead of a UserError message. However, we forced the use of generic credit transfers for Swiss companies at the same time. This behavior is not correct as Switzerland is part of the Single Euro Payments Area, it should therefore be possible to generate SEPA payments for Swiss companies. [1]:https://github.com/odoo/enterprise/commit/643f9d64d8677a1a7bf50ef9ff24867f2899c152 [2]:https://github.com/odoo/enterprise/commit/b5d0420cb27aaef225c77b5f2b07657f8b9866a8 Forward-Port-Of: odoo/enterprise#30636 Forward-Port-Of: odoo/enterprise#30202
Purpose: ======== The article search rule in the command palette previously did not make distinctions between articles whose name match the search query and articles whose root's name match the search query. Therefore, the root article matching the query was not always on the top since its children also matched the query through their root. Now, one first search for articles whose name match the query, and afterwards search for articles whose name does not match the query but whose ro
Original PR description
Purpose: ======== The article search rule in the command palette previously did not make distinctions between articles whose name match the search query and articles whose root's name match the…
Purpose: ======== The article search rule in the command palette previously did not make distinctions between articles whose name match the search query and articles whose root's name match the search query. Therefore, the root article matching the query was not always on the top since its children also matched the query through their root. Now, one first search for articles whose name match the query, and afterwards search for articles whose name does not match the query but whose root's name match the query. The order of articles shown in the command palette is thus now: - name = query & is_user_favorite - by Favorite sequence - name = query & Favorite count - root.name = query & is_user_favorite - by Favorite sequence - root.name = query & Favorite count Tests have been adapted so that articles whose name match the query are always expected before articles whose root.name match the query. The number of articles shown in the command palette has been increased to 40 instead of 10, to ease the search. The matching part of the root name is now also highlighted in the command palette, so that one gets why the article appears there. It is however not bold anymore as we want to keep it light compared to the article name. Task-2922605 Forward-Port-Of: odoo/enterprise#30637
### Observed Behaviour When adding a time off on a period that include a public holiday, the time off day will end on the public holiday according to the Planning of viewing the Work Entries. ### Expected Behaviour When creating a public holiday on a day and approving time off for a period that include this public holiday, the planning should simply include it in the whole period of the holiday. ### Reproducibility This issue can be reproduced using the following steps: 1. Add a public
Original PR description
### Observed Behaviour When adding a time off on a period that include a public holiday, the time off day will end on the public holiday according to the Planning of viewing the Work Entries. ###…
### Observed Behaviour When adding a time off on a period that include a public holiday, the time off day will end on the public holiday according to the Planning of viewing the Work Entries. ### Expected Behaviour When creating a public holiday on a day and approving time off for a period that include this public holiday, the planning should simply include it in the whole period of the holiday. ### Reproducibility This issue can be reproduced using the following steps: 1. Add a public holiday on a monday (eg May 23rd) 2. Request Time off from the previous friday to the next tuesday (ie May 20-24) 3. Validate the Time Off 4. Go to the Planning and plan a new task for the month including the time off It will show that the time off is ending on the public holiday (ie May 20-23) ### Fix Description When looping on the holiday to determine the availbility of the user, we check if a holiday's start is included in/next to another holiday and, if so, we set the full period as the begginning of the first holiday to the end of the second, regardless if the end of the first one is before/after the end of the second one. We add a condition to check this before changing the end date. ### Relate issues/PR - opw-2797548 Forward-Port-Of: odoo/enterprise#25851
Some lines on the balance sheet were wrong. Domain and Special Date Changer was wrong for lines "Resultados/Excedentesde ejercicios anteriores" and "Resultado/Excedentesdel ejercicio". opw-2920843 Forward-Port-Of: odoo/enterprise#29828
Original PR description
Some lines on the balance sheet were wrong. Domain and Special Date Changer was wrong for lines "Resultados/Excedentesde ejercicios anteriores" and "Resultado/Excedentesdel ejercicio". opw-2920843 Forward-Port-Of: odoo/enterprise#29828
Current behavior: The maps view contains a list of pins in the right sidebar. This list is numbered if the routing is set to true in the map arch. The numbers are not always aligned with the corresponding pin name. Desired behavior: This commit fixes this alignment problem, the pin names are aligned with the numbers. Example: In project -> My Tasks -> Map there is a numbered list where the numbers are not aligned with their text. Forward-Port-Of: https://github.com/odoo/enterpr
Original PR description
Current behavior: The maps view contains a list of pins in the right sidebar. This list is numbered if the routing is set to true in the map arch. The numbers are not always aligned with the corresponding pin name. Desired behavior: This commit fixes this alignment problem, the pin names are aligned with the numbers. Example: In project -> My Tasks -> Map there is a numbered list where the numbers are not aligned with their text. Forward-Port-Of: https://github.com/odoo/enterprise/pull/30546 Forward-Port-Of: odoo/enterprise#30595
The toolbar action for printing Chilean delivery guides appears for every country if l10n_cl_edi_stock is installed. After this PR: The text in the menu is changed to show that this menu is for Chile (CL) Forward-Port-Of: odoo/enterprise#30518
Original PR description
The toolbar action for printing Chilean delivery guides appears for every country if l10n_cl_edi_stock is installed. After this PR: The text in the menu is changed to show that this menu is for Chile (CL) Forward-Port-Of: odoo/enterprise#30518
Before this commit, clicking on the "Website" menu item in an app in studio mode would trigger an error. The FormManagerAdapter used useService in its constructor, which is impossible. It must be used in setup. How to reproduce the problem: - Go to an app - Switch to studio mode - Click on the "Website" menu item - Trigger error Forward-Port-Of: odoo/enterprise#29655
Original PR description
Before this commit, clicking on the "Website" menu item in an app in studio mode would trigger an error. The FormManagerAdapter used useService in its constructor, which is impossible. It must be used in setup. How to reproduce the problem: - Go to an app - Switch to studio mode - Click on the "Website" menu item - Trigger error Forward-Port-Of: odoo/enterprise#29655
Steps to reproduce the bug: - go to Helpdesk > Tickets > All tickets - switch to list view, (if needed) unhide the ticket type, sort by ticket type The tickets are not correctly sorted, because the sequence of all records is the same. This commit adds an extra sort on the name of the ticket type. opw-2945819 Forward-Port-Of: odoo/enterprise#30530 Forward-Port-Of: odoo/enterprise#30179
Original PR description
Steps to reproduce the bug: - go to Helpdesk > Tickets > All tickets - switch to list view, (if needed) unhide the ticket type, sort by ticket type The tickets are not correctly sorted, because the sequence of all records is the same. This commit adds an extra sort on the name of the ticket type. opw-2945819 Forward-Port-Of: odoo/enterprise#30530 Forward-Port-Of: odoo/enterprise#30179