Daily updates from Odoo
Friday, May 17, 2024
12 changes
Resolved issues and error corrections
This update corrects a test oversight that was missed during a previous code update in the stock barcode module. The fix ensures that automated tests run correctly and reliably, helping maintain the quality and stability of the barcode scanning functionality.
Original PR description
This commit fixes an oversight in the forward-port of https://github.com/odoo/enterprise/pull/59342, see comment https://github.com/odoo/enterprise/pull/59342#pullrequestreview-1966528450 opw-3746608
This update replaces deprecated timezone references across multiple Odoo modules with current, supported alternatives. This ensures the system remains compatible with modern timezone standards and prevents potential issues from using outdated timezone definitions.
Original PR description
Continuation of #59440
This update fixes failing tests in the Australian tax reporting module. The tests were not working properly because the tax codes being tested were inactive. The fix activates these tax codes so the tests can run correctly and verify the tax report functionality.
Original PR description
The tests were failing because the TPAR report was working correctly beause all TPAR taxes were inactive. They need to be set active before using. Task# 3782518
We removed unnecessary supplier data from Peru's electronic delivery guide format that was being included for a transport type we don't support. This cleanup ensures our system stays compliant with Peru's latest validation rules and prevents potential errors when processing delivery documents.
Original PR description
The SellerSupplierParty data was initially included for transport reason '13', but recent validations show it is only necessary for transport reasons '02' and '07', which we do not support. Removed these fields to prevent data redundancy and potential errors. Before: - Included SellerSupplierParty data for transport reason '13'. After: - Removed SellerSupplierParty data from DespatchAdvice template. This change ensures compliance with the latest validation rules and reduces unnecessary XML data. Legal Reference:  https://cpe.sunat.gob.pe/sites/default/files/inline-files/ValidacionesGREv20221020_publicacion.xlsx Latam Task: https://latam-localizations.odoo.com/web#id=1203&menu_id=142&cids=1&action=188&model=project.task&view_type=form Forward-Port-Of: odoo/enterprise#62651
This fix corrects a configuration error in the Subscriptions app where the payment token field had an improperly formatted setting that caused errors when editing it through the Studio customization tool. The setting value is now properly formatted as a boolean, allowing users to edit payment token fields without encountering errors.
Original PR description
Before this commit:
The sale_subscription_order_form XML view had a key-value pair of {'no_create': 'True'} on the field for a payment_token. The proper value should be True without quotation marks, otherwise a invalid prop error is thrown when you attempt to edit the payment_token field via studio in the Subscriptions app.
opw-3891923This fix corrects the display size of PIN entry buttons in the employee attendance kiosk mode. The buttons were appearing too large due to a CSS styling conflict with the website module. The fix restores the proper button sizing so employees can easily enter their PIN during manual identification.
Original PR description
Steps to reproduce: - Install attendance and website - Toggle "Employee PIN Identification" in Settings - Open "Attendances" - Kiosk Mode - Identify Manually and click on an employee Issues: The button for the pin code are too big, this is due to the CSS change in website module for the 'btn-lg' class. https://github.com/odoo/odoo/blob/71227dbc4848c7c27c61e477a78b35e0c0167b8e/addons/website/static/src/scss/website.scss#L576-L594 As a solution I added the styling to the `o_hr_attendance_PINbox_button` class, such that we keep the original styling. https://github.com/odoo/odoo/blob/71227dbc4848c7c27c61e477a78b35e0c0167b8e/addons/web/static/lib/bootstrap/dist/css/bootstrap.css#L3462-L3466 opw-3864816
TPAR taxes have been deactivated by default in the Australian localization module because they are rarely used and clutter the tax selection interface. This change makes it easier for users to find and select the taxes they actually need when setting up accounting configurations.
Original PR description
TPAR is not commonly used and makes it difficult to search for taxes in Many2one fields. This commits sets them to inactive by default. Task# 3782518 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix corrects the file extension of the GitHub issue template configuration from an incorrect format to the proper .yml format. This ensures GitHub can correctly recognize and process the issue template configuration, maintaining proper automation and workflow functionality.
This update removes an extra closing curly brace that was causing a syntax error in the CRM team views configuration file. The erroneous character was preventing the system from properly parsing the context field, which could lead to functionality issues in the CRM module. This fix ensures the configuration file is properly formatted and the CRM module functions correctly.
Original PR description
I found in the CRM view crm_team_views.xml on line 82 an extra closing curly brace in the value of the context. Each opening tag/brace must have only one closing tag/brace. In our case it was a curly brace which must be removed to avoid syntax errors. This PR is made after a similar one for 17.0 branch which has the same issue and I was advised by @reth-odoo to make the PR for the first branch containing the bug. The previous PR URL for 17.0: [https://github.com/odoo/odoo/pull/164461](https://github.com/odoo/odoo/pull/164461) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#165717
This update removes the use of an outdated timestamp function (utcfromtimestamp) from Odoo's automation and file handling systems. The change ensures the system uses more reliable and modern date/time handling methods, improving code stability and future compatibility.
Original PR description
First commit: Doesn't look like an issue since it is a fallback in case `action.last_run` is not set Second commit: to verify Forward-Port-Of: odoo/odoo#165735
A typo in the fullscreen exit message was corrected, changing "string" back to "screen". Additionally, the text escaping function was updated to display the message correctly. This ensures users see the proper exit fullscreen instructions without formatting issues.
Original PR description
With the conversion of inline templates in [1], a typo was introduced that changed "screen" to "string". This commit fixes that typo and updates the .pot file. Also, the `escape` function used was changed to the correct one. [1] 5700cc65b614b0db0f73b6704fe2fad44b62d2d3 Forward-Port-Of: odoo/odoo#165442 Forward-Port-Of: odoo/odoo#164893
This update enhances error reporting for the Egyptian localization drivers by capturing and logging complete error details instead of just error messages. This improvement helps support teams diagnose and resolve issues more quickly by providing full context when problems occur in the IoT system.
Original PR description
Before this commit: l10nEGDrivers errors can be ambiguous as we only receive the error string. After this commit: The full traceback alongside an error message is logged in the IoT opw-3915843 Forward-Port-Of: odoo/odoo#165726