Friday, April 26, 2024
8 changes · 17.0
Enhancements to existing features
A helpful tooltip has been added to the 'Withhold Agent Number' field in Ecuador's accounting settings to clarify its purpose and usage. This improvement addresses user confusion and support issues by providing clear guidance directly in the system, enhancing the overall user experience for Ecuadorian businesses using Odoo.
Original PR description
Adding tooltip to Withhold Agent for l10n_ec localization in accounting settings under Ecuadorian Localization Reason is to give the user tip about what this field actually hold and enhance the user experience as some users raising some issues because of the lack of knowing this field Task [link](https://www.odoo.com/web#model=project.task&id=3819108) Task-3819108
This update separates warning message handling into a dedicated function, making it easier for developers to customize and translate field-related warnings. This improvement enhances the flexibility of the core system for localization and customization purposes.
Original PR description
**In this pr, i want separate the warning into a separate function so that developers can easily customize the translation of the related field** --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
This fix resolves test failures in the Shop Floor module when running in databases without demo data. The issue occurred because a required setting (group_mrp_routings) was disabled, causing automated tests to fail at their first step. The fix automatically enables this setting during test setup and ensures required test data (an employee named 'Marc Demo') is created when not present.
Original PR description
### Issue: Tours from `tour_shopfloor.js` fail in "No demo" databases. ### Explanation: This is due to the setting `group_mrp_routings` being disabled. When it is enabled, a pop-up appears when…
### Issue: Tours from `tour_shopfloor.js` fail in "No demo" databases. ### Explanation: This is due to the setting `group_mrp_routings` being disabled. When it is enabled, a pop-up appears when entering Shop Floor and the tours take it into account since the setting is enabled with Demo Data. When it is disabled, the pop-up does not appear, and the tests fail at the first step because of it. https://github.com/odoo/enterprise/blob/4b34efc77b57562e4c92956c63c8c20e6de53bf0/mrp_workorder/static/src/mrp_display/mrp_display.js#L107 https://github.com/odoo/enterprise/blob/4b34efc77b57562e4c92956c63c8c20e6de53bf0/mrp_workorder/static/src/mrp_display/mrp_display.js#L114-L119 ### Fix: Due to both tests failing for the same reason, the setting will automatically be enabled in `setUpClass`. `test_shop_floor` also needs an employee named 'Marc Demo', adding the creation of the employee for "No demo" databases. https://github.com/odoo/enterprise/blob/74e0f4fec69d6512e213312bf42f3d743f7a27b3/mrp_workorder/static/tests/tours/tour_shopfloor.js#L28-L31 error-60565 error-58036
This update corrects the Spanish translation of a link text in the Peru EDI module from "here" to the proper Spanish word "aquí". This ensures that Peruvian users see accurate, localized text in their interface when using the electronic invoicing features.
Original PR description
"here" = "aquí" in Spanish Forward-Port-Of: odoo/enterprise#61474
This update fixes a broken test in the Dutch tax reporting module that was failing due to changes in how chart templates work. The test wasn't running before because required environment variables weren't configured, but now that they are enabled, the test needed to be updated to work with the current system.
Original PR description
The way the chart templates refs work had changed in 16.2, but this test was never adapted (it never ran before as the needed environment variables were not set on runbot... They are now and this raises an error). Forward-Port-Of: odoo/enterprise#61385
This update fixes inconsistent method signatures in the accounting, purchasing, and sales modules to match the parent email notification method. While no actual bugs were reported, this change ensures all modules follow the same API standard, improving code consistency and preventing potential future issues.
Original PR description
Since 3eb96806022705f5b667e149ffa2240760097278, the signature of method `_notify_by_email_prepare_rendering_context` has been changed to provide a default values to `msg_vals` and some overrides were not adapted (or have been added afterwards). No true bug/issue has been found caused by that discrepancy, but for consistency, this commit makes sure those overrides are adapted to provide the same API as the parent method. Fixes #162742 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#163334
A test case in the India localization module was incorrectly inheriting from an enterprise class instead of the community version. This fix corrects the inheritance to use the appropriate community class, ensuring tests run properly with the correct codebase.
Original PR description
Before this commit: Accidentally the test case in community inherited class from enterprise After this commit: We inherit the correct class which belongs to community --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixed an issue where the OCR button was not properly hidden in the Account PEPPOL module. The fix corrects how the system determines when to display the OCR button by adjusting the default state of the extractable field, ensuring the button only appears when appropriate.
Original PR description
`extract_can_show_send_button` is a computed readonly field, providing a default value doesn't do anything. By setting `is_in_extractable_state` to `False` by default, we can hide the ocr button. no task, noticed while fixing a traceback in saas-17.1 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#163524