Daily updates from Odoo
Thursday, January 16, 2025
19 changes · master
Enhancements to existing features
The test_web_studio module now includes an explicit access permission configuration. This helps keep automated testing aligned with the expected security setup and reduces the risk of permission-related test issues.
Original PR description
odoo/odoo#192112
Product price display markup was aligned with recent website shop changes by using a standard page element instead of a heading. This helps keep rental and subscription product pages consistent and supports better search engine structure.
Original PR description
change product price tag from h3 to div task-4368329
The activity management component has been moved into a shared foundation used by several Odoo apps. This should make activity-related behavior more consistent across approvals, documents, signing, and VoIP while reducing duplicated maintenance work.
Spreadsheet view components were simplified so they no longer send unnecessary internal updates to other parts of the spreadsheet engine. This reduces unintended interactions and helps keep collaborative spreadsheet behavior more predictable.
Original PR description
The CoreView plugins have a local state that is directly derived from the core data. As such, they should not have any impact on plugins other than themselves, especially not on core plugins. This revision removes the dispatch fro the core view plugins altogether as they don't and should not dispatch anything. Task: 4241403
*: account_followup,account_reports,mrp_account_enterprise, sign,snailmail_account_followup,web_studio This commit allows to only enable when needed the "autoprefixing" feature of CSS rules used for compatibility with (very) old browsers. To do so, it introduces the boolean `t-autoprefix` attribute on `<t t-call-assets="..."/>` in QWeb's templates. As those prefixes (e.g. `-webkit-`, `-moz-`...) are basically only required for wkhtmltopdf compatibility nowadays, only the reports' bundl
Original PR description
*: account_followup,account_reports,mrp_account_enterprise, sign,snailmail_account_followup,web_studio This commit allows to only enable when needed the "autoprefixing" feature of CSS rules used for compatibility with (very) old browsers. To do so, it introduces the boolean `t-autoprefix` attribute on `<t t-call-assets="..."/>` in QWeb's templates. As those prefixes (e.g. `-webkit-`, `-moz-`...) are basically only required for wkhtmltopdf compatibility nowadays, only the reports' bundles stil use it. Also disabling it for the other bundles (backend, frontend...) result into a slight gain in the bundles' size (+/- 20ko uncompressed on a database "all").
Resolved issues and error corrections
The automated tests for spreadsheet-related document features were adjusted to match a recent spreadsheet engine update. This helps keep quality checks reliable and reduces the risk of false test failures during future releases.
Original PR description
Adapt the tests to the new o-spreadsheet update. See https://github.com/odoo/odoo/pull/193691
Miscellaneous changes
How to reproduce: - Install documents_hr_payroll - Go to Marc Demo employee file - Activate debug and click on View:form item of the debug menu - Move the field "work_contact_id" in the sheet tag and make it visible - Return on the Marc Demo employee file - Set a new work contact for Marc Demo (using the field): newContact - Go to the payslip and confirm one of the payslip of Marc - Open HR Payroll directory in the Document App - The payslip of Marc is present, select it and click on "S
Original PR description
How to reproduce: - Install documents_hr_payroll - Go to Marc Demo employee file - Activate debug and click on View:form item of the debug menu - Move the field "work_contact_id" in the sheet tag and…
How to reproduce: - Install documents_hr_payroll - Go to Marc Demo employee file - Activate debug and click on View:form item of the debug menu - Move the field "work_contact_id" in the sheet tag and make it visible - Return on the Marc Demo employee file - Set a new work contact for Marc Demo (using the field): newContact - Go to the payslip and confirm one of the payslip of Marc - Open HR Payroll directory in the Document App - The payslip of Marc is present, select it and click on "Share" The payslip is shared with "Mitchell Admin" and "newContact" so Marc Demo won't be able to see it because it is not shared with the partner of his user. The problem was that the employee work_contact_id partner was used to give access to the payslip (and as contact of the payslip document) while for some employee, the work contact is different than the partner associated with their user. In that case, the payslip is shared with a partner different than the employee user partner and the employee cannot see the payslip. We solve the problem by always sharing the payslip with the partner of the employee user if it exists and we fallback only to the work contact if there is no user associated with the employee. Task-4404015 Forward-Port-Of: odoo/enterprise#77060 Forward-Port-Of: odoo/enterprise#75673
task-4285805 Forward-Port-Of: odoo/enterprise#77208 Forward-Port-Of: odoo/enterprise#76950
Original PR description
task-4285805 Forward-Port-Of: odoo/enterprise#77208 Forward-Port-Of: odoo/enterprise#76950
Description of the issue this commit addresses: The Italian annual tax report lacks an integer rounding feature. --- Desired behavior after this commit is merged: The Italian annual tax report uses the HALF-UP rounding method. --- Community PR: https://github.com/odoo/odoo/pull/164064 Task-3479785 Forward-Port-Of: odoo/enterprise#77142 Forward-Port-Of: odoo/enterprise#62405
Original PR description
Description of the issue this commit addresses: The Italian annual tax report lacks an integer rounding feature. --- Desired behavior after this commit is merged: The Italian annual tax report uses the HALF-UP rounding method. --- Community PR: https://github.com/odoo/odoo/pull/164064 Task-3479785 Forward-Port-Of: odoo/enterprise#77142 Forward-Port-Of: odoo/enterprise#62405
The code currently tries to access `private_key_id_id` which is actually `private_key_id`. opw-4466293 Forward-Port-Of: odoo/enterprise#77159
Original PR description
The code currently tries to access `private_key_id_id` which is actually `private_key_id`. opw-4466293 Forward-Port-Of: odoo/enterprise#77159
Fix preparation display table name computation. Forward-Port-Of: odoo/enterprise#77169
Original PR description
Fix preparation display table name computation. Forward-Port-Of: odoo/enterprise#77169
Remove the workaround introduced in https://github.com/odoo/enterprise/pull/76546 because the root cause has been fixed in the linked community PR. https://github.com/odoo/odoo/pull/193256 Forward-Port-Of: odoo/enterprise#77012
Original PR description
Remove the workaround introduced in https://github.com/odoo/enterprise/pull/76546 because the root cause has been fixed in the linked community PR. https://github.com/odoo/odoo/pull/193256 Forward-Port-Of: odoo/enterprise#77012
This file was not loaded in the manifest and is a duplicated of `/mrp_account_enterprise/views/cost_structure_report.xml` Forward-Port-Of: odoo/enterprise#77177
Original PR description
This file was not loaded in the manifest and is a duplicated of `/mrp_account_enterprise/views/cost_structure_report.xml` Forward-Port-Of: odoo/enterprise#77177
Issue: ------ When printing the reports which are Print Check(Top, Middle and Bottom), the address of that particular report is not being formatted properly which makes the printed report poor formatted/ugly. There are three types/formats of report which are Print Check(Top, Middle and Bottom) none of them are getting printed properly(address). View Ref: [Link](https://github.com/odoo/enterprise/blob/saas-17.4/l10n_us_check_printing/report/print_check.xml#L17) **Note:** Not the blank repor
Original PR description
Issue: ------ When printing the reports which are Print Check(Top, Middle and Bottom), the address of that particular report is not being formatted properly which makes the printed report poor…
Issue: ------ When printing the reports which are Print Check(Top, Middle and Bottom), the address of that particular report is not being formatted properly which makes the printed report poor formatted/ugly. There are three types/formats of report which are Print Check(Top, Middle and Bottom) none of them are getting printed properly(address). View Ref: [Link](https://github.com/odoo/enterprise/blob/saas-17.4/l10n_us_check_printing/report/print_check.xml#L17) **Note:** Not the blank reports like Print Blank Check(Top, Middle and Bottom). Solution: ----------- Add an adequate width to the addresses class i.e; `ckus_payee_addr`. Steps to reproduce:- -------------------- 1. Create a demo db in version 18.0 with `l10n_us_check_printing` module installed. 2. Create a payment record and confirm it. 3. Try printing that payment with any of (top/middle/bottom) Print Check reports. 4. check with the address which would've broken. Reference Screenshots: **Without Fix:**  **With Fix:**  OPW - 4454079 UPG - 2408700 Forward-Port-Of: odoo/enterprise#76706
As of now the gantt popover delete button is added through gantt-popover template which is making it harder to extend its functionality. In this PR we move the button to the ganttPopoverProps. We can pass the button through JS side, thus being to extend it's functionality of reccurence deletion. Made a dedicated hook function to combine the logic used in both form and gantt view in reccurence deletion of shifts. The unschedule gantt popover button is migrated to JS side to preserve the
Original PR description
As of now the gantt popover delete button is added through gantt-popover template which is making it harder to extend its functionality. In this PR we move the button to the ganttPopoverProps. We can pass the button through JS side, thus being to extend it's functionality of reccurence deletion. Made a dedicated hook function to combine the logic used in both form and gantt view in reccurence deletion of shifts. The unschedule gantt popover button is migrated to JS side to preserve the order of buttons in gantt popover. task-4224792 Forward-Port-Of: odoo/enterprise#76937 Forward-Port-Of: odoo/enterprise#71759
Changes in enterprise related to PR https://github.com/odoo/odoo/pull/157968 Added the resource_color as dependency for the widget to display the color task-3801551 Forward-Port-Of: odoo/enterprise#77058 Forward-Port-Of: odoo/enterprise#70453
Original PR description
Changes in enterprise related to PR https://github.com/odoo/odoo/pull/157968 Added the resource_color as dependency for the widget to display the color task-3801551 Forward-Port-Of: odoo/enterprise#77058 Forward-Port-Of: odoo/enterprise#70453
Steps to reproduce: 1. Switch to mobile view. 2. The magnifier button is not working. 3. when adding a member through the share panel, 'people with access' section shows weirdly. 4. Send and discard button display issue on the share panel. Technical Reason: SearchBar is being handled in the control panel and was not passed the searchBarToggler in the toggler attribute, and add a condition on the 'searchBarToggler.component' only shows if documents are not selected. After this Commit:
Original PR description
Steps to reproduce: 1. Switch to mobile view. 2. The magnifier button is not working. 3. when adding a member through the share panel, 'people with access' section shows weirdly. 4. Send and discard button display issue on the share panel. Technical Reason: SearchBar is being handled in the control panel and was not passed the searchBarToggler in the toggler attribute, and add a condition on the 'searchBarToggler.component' only shows if documents are not selected. After this Commit: 1. The magnifier button will hide/display the search bar and the magnifier button will be hidden if we select a document. 2. In the share panel, the 'people with access' section, will show properly. 3. Buttons will be in a proper width. Task-4419375 Forward-Port-Of: odoo/enterprise#76039
Steps to reproduce: 1. press 'Cntrl+a' will select and deselect. 2. after one operation of selecting/deselecting it loses focus. 3. focus moved to the search bar. 4. due to this the 'Cntrl+a' is not working until you click somewhere. 5. select/deselect not working properly. It also fixes issues related to the 'shift+arrow' selection flow 1. Go to the documents list view 2. Select any not-the-last record 3. Hold Shift and hit down arrow 4. The record below is not selected as it should
Original PR description
Steps to reproduce: 1. press 'Cntrl+a' will select and deselect. 2. after one operation of selecting/deselecting it loses focus. 3. focus moved to the search bar. 4. due to this the 'Cntrl+a' is not working until you click somewhere. 5. select/deselect not working properly. It also fixes issues related to the 'shift+arrow' selection flow 1. Go to the documents list view 2. Select any not-the-last record 3. Hold Shift and hit down arrow 4. The record below is not selected as it should Technical Reason: In the Search bar, the attribute autofocus was evaluating 'true' every time because of sending 'undefined' due to this default props set it to 'true'. After this Commit: 1. focus will not be lost. 2. select/deselect will work properly. Task-4413608 Forward-Port-Of: odoo/enterprise#75866
The details panel was incorrectly showing "Shared With Me" instead of "Company". Missing in 9510ae62 or 0f481b67 (forward ports of 23fb26ae), merged so close together on a Christmas and Freeze Eve. Task-4293838 Task-4266789 Forward-Port-Of: odoo/enterprise#77139
Original PR description
The details panel was incorrectly showing "Shared With Me" instead of "Company". Missing in 9510ae62 or 0f481b67 (forward ports of 23fb26ae), merged so close together on a Christmas and Freeze Eve. Task-4293838 Task-4266789 Forward-Port-Of: odoo/enterprise#77139