Wednesday, June 19, 2024
13 changes · master
Enhancements to existing features
This update simplifies how WhatsApp discussion sidebar tests identify elements by removing an unnecessary page structure dependency. It is a minor maintenance improvement that makes tests less fragile without changing user-facing behavior.
Original PR description
The title itself is precise enough to not depend of the tag. Community PR: https://github.com/odoo/odoo/pull/169751
Resolved issues and error corrections
This fix ensures the accounting settings page can load correctly when users work in translated languages. It removes an unnecessary dependency on visible section titles, reducing the risk of setup screens breaking because labels are translated.
Original PR description
The settings view inherits from the `account` one, and locates the block tag by both `title` and `id`, but: - Once you have the `id` you don't need the `title`. - In case of translated title, it is translated before being inherited, so the arch fails finding it.  Old PR: odoo/enterprise#56686
Code cleanup and technical improvements
This update aligns several Enterprise modules with a recent core platform change by using the renamed shared boolean parsing utility. It is an internal cleanup that helps keep the codebase consistent and easier to maintain, with no expected change for end users.
Original PR description
This commit is made to follow the changes made in https://github.com/odoo/odoo/pull/167387 's first commit (rename archParseBoolean into exprToBoolean and move it to string utils)
Miscellaneous changes
Before this commit: An IoT box would always listen to the iot.channel of the first company as it did not take into account the IoT-box company field. As such, setting an IoT box on a company C2 setting a printer and report to print on this IoT and restarting it. Report will never print as the IoT listen to C1 channel After this commit: If the IoT box company is set and the IoT is restarted. It will received the correct IoT channel. So, to print IoT reports opw-3991810 Forward-Port-Of:
Original PR description
Before this commit: An IoT box would always listen to the iot.channel of the first company as it did not take into account the IoT-box company field. As such, setting an IoT box on a company C2 setting a printer and report to print on this IoT and restarting it. Report will never print as the IoT listen to C1 channel After this commit: If the IoT box company is set and the IoT is restarted. It will received the correct IoT channel. So, to print IoT reports opw-3991810 Forward-Port-Of: odoo/enterprise#64943 Forward-Port-Of: odoo/enterprise#64859
The demo double opt-in campaign now sends newsletter confirmation messages almost immediately instead of waiting one hour. This improves the subscriber experience by reducing delays during signup confirmation.
Original PR description
This PR update the Demo Campaign Double Opt-in's Trigger Value to 0 Hour, so that subscribers of a newsletter get a close-to instant confirmation instead of an hour later. Task-3976448
This update refreshes internal guided-tour test definitions across several Odoo apps to use the newer activation rule format. It helps keep automated testing infrastructure compatible with the platform and prepares the old configuration fields for removal, without changing business features.
Original PR description
Since https://github.com/odoo/odoo/pull/168829, the auto, edition, skip_trigger, mobile keys have been replaced by isActive. In this commit, we replace these keys with isActive so that we can then delete them from the schema of a step. task~3974087
The aim of this commit is giving a fallback value when we need digits' currency and that we don't have this currency loaded in the js session. This commit is almost a backport of what we have done in this commit [1], the main difference is that we put a default value instead of dealing with the undefined value. task-3959277 [1]: https://github.com/odoo/enterprise/commit/6a3623c168f3bdf32b9530071e21c014dd19ea07 Forward-Port-Of: odoo/enterprise#64940 Forward-Port-Of: odoo/enterprise#63913
Original PR description
The aim of this commit is giving a fallback value when we need digits' currency and that we don't have this currency loaded in the js session. This commit is almost a backport of what we have done in this commit [1], the main difference is that we put a default value instead of dealing with the undefined value. task-3959277 [1]: https://github.com/odoo/enterprise/commit/6a3623c168f3bdf32b9530071e21c014dd19ea07 Forward-Port-Of: odoo/enterprise#64940 Forward-Port-Of: odoo/enterprise#63913
The "Send Support Document to DIAN" button was displayed on vendor bills even when the associated journal was not set up for it (the field "Resolución de Facturación" was not set up for that move's journal). The button is now invisible if the correct conditions are not met. task-3990920 Forward-Port-Of: odoo/enterprise#64764
Original PR description
The "Send Support Document to DIAN" button was displayed on vendor bills even when the associated journal was not set up for it (the field "Resolución de Facturación" was not set up for that move's journal). The button is now invisible if the correct conditions are not met. task-3990920 Forward-Port-Of: odoo/enterprise#64764
opw-3935664 Forward-Port-Of: odoo/enterprise#64775 Forward-Port-Of: odoo/enterprise#63998
Original PR description
opw-3935664 Forward-Port-Of: odoo/enterprise#64775 Forward-Port-Of: odoo/enterprise#63998
Bug === 1. Open Safari or Firefox 2. Open the split tool 3. We can not open the preview by clicking on the upper card of the card Technical ========= The hover effect was done with CSS trickery, so we added a new div to remove the CSS `transform` trick. Task-3863428 Forward-Port-Of: odoo/enterprise#64841 Forward-Port-Of: odoo/enterprise#61010
Original PR description
Bug === 1. Open Safari or Firefox 2. Open the split tool 3. We can not open the preview by clicking on the upper card of the card Technical ========= The hover effect was done with CSS trickery, so we added a new div to remove the CSS `transform` trick. Task-3863428 Forward-Port-Of: odoo/enterprise#64841 Forward-Port-Of: odoo/enterprise#61010
In the Discuss app, update the avatar for each WhatsApp channel category message, from a static to a dynamic one. The avatar image is fetched from the associated partner. task-3908710 Forward-Port-Of: odoo/enterprise#64640 Forward-Port-Of: odoo/enterprise#63078
Original PR description
In the Discuss app, update the avatar for each WhatsApp channel category message, from a static to a dynamic one. The avatar image is fetched from the associated partner. task-3908710 Forward-Port-Of: odoo/enterprise#64640 Forward-Port-Of: odoo/enterprise#63078
**Steps to reproduce:** - Go to list view or kanban view. - Select the document to preview in the inspector. - Clear the input value of a required field (here, Name or Workspace), and click elsewhere or press 'Enter'. **Issues:** - _**Workspace field**_ A validation error is raised when a Workspace name is cleared. However, an alert dialog is not displayed. - _**Name field**_ An alert dialog indicating a validation error is shown yet on clicking the `OK` button, the unnamed docume
Original PR description
**Steps to reproduce:** - Go to list view or kanban view. - Select the document to preview in the inspector. - Clear the input value of a required field (here, Name or Workspace), and click elsewhere…
**Steps to reproduce:**
- Go to list view or kanban view.
- Select the document to preview in the inspector.
- Clear the input value of a required field (here, Name or Workspace), and click elsewhere or press 'Enter'.
**Issues:**
- _**Workspace field**_
A validation error is raised when a Workspace name is cleared. However, an alert dialog is not displayed.
- _**Name field**_
An alert dialog indicating a validation error is shown yet on clicking the `OK` button, the unnamed document is saved as is.
Instead, the changes should be reverted.
**Causes:**
- _**Workspace field**_
The `required` attribute was not added to `folder_id` field in the view. As a result, alert dialog was not shown.
- _**Name field**_
The config mode never changes to 'edit'. Even when a user is editing an inspector field, the mode is 'readonly'.
As a result, the boolean `isInEdition` remains false and the code-block meant to be executed
on click of the confirm button of alert dialog does not execute as intended.
**Fix:**
- _**Workspace field**_
The `required` attribute is forcefully set to true for the `folder_id` field so that an empty value for workspace
is not considered to be a 'validSelection' and the user faces an alert popup.
- _**Name field**_
This PR fixes the issue by switching to edit mode whenever user changes the value of a document inspector field.
This PR also adds a testcase in `documents_kanban_tests.js` to ensure that the confirm ('OK') button works as intended.
Task: [3799280](https://www.odoo.com/web#id=3799280&menu_id=4722&cids=2&action=333&active_id=10888&model=project.task&view_type=form)
Forward-Port-Of: odoo/enterprise#64560
Forward-Port-Of: odoo/enterprise#59734Task-3924439 Forward-Port-Of: odoo/enterprise#64783 Forward-Port-Of: odoo/enterprise#64310
Original PR description
Task-3924439 Forward-Port-Of: odoo/enterprise#64783 Forward-Port-Of: odoo/enterprise#64310