Daily updates from Odoo
Wednesday, April 3, 2024
7 changes · 17.0
Enhancements to existing features
This update improves how subscription payment links are processed by ensuring payment tokens are only created when the payment amount meets or exceeds the subscription's recurring amount. This prevents invalid payment processing and ensures customers are charged the correct amount for their subscriptions.
Original PR description
opw-3736162 **UPDATE**: this PR caused regressions, follow-up here: https://github.com/odoo/enterprise/pull/61025
This update enhances the online checkout process by converting the order summary into a collapsible dropdown (similar to the mobile experience), removing unnecessary labels, and making the payment button always visible by keeping the order summary sticky. These changes create a cleaner, more intuitive checkout flow that reduces clutter and improves accessibility to the payment action.
Original PR description
- replace order summary by a dropdown like mobile view - remove 'Pay With' title - match 'Choose delivery method' style with 'Choose payment method' - make order summary sticky so that 'Pay now' is always accessible task-3741412 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The color picker tool now works more smoothly when entering hex color codes. Users can type color values without the "#" symbol and it will be added automatically, and the color preview updates instantly as they type. Additionally, the color picker no longer closes unexpectedly when clicking in the input area, making it easier to enter and confirm color selections.
Original PR description
**[IMP] web_editor: prevent the colorpicker from closing on inner click** Before this commit, clicking in the area below the "Hex color" input would close the color picker. This was annoying when entering a value in the "Hex color" input and then clicking below to confirm it. After this commit, the color picker no longer closes when clicking on its background. task-3747408 ----------------------- **[IMP] web: update the colorpicker on hex color input's input event** This commit improves the UX of the color picker's hex input in two ways: If the user enters a hex color without the "#" symbol, it's automatically added. As soon as a valid hexadecimal color is entered in the input, the colorpicker updates, and the color is applied to the target element. task-3747408
This update improves how Odoo handles journal imports from French FEC files by adding a context option to skip automatic mail alias creation. This prevents errors that occur when multiple journals with the same name but different codes are imported, as each would attempt to create a mail alias with the same name. The change ensures smoother data imports without duplicate alias conflicts.
Original PR description
This is done together with an enterprise commit in order to avoid creating mail alias automatically on journals imported via FEC files, in France. Indeed, such files could contain journals with different codes but same name, each of which would try creating an alias with the same name, raising an error. OPW 3813584 Forward-Port-Of: odoo/odoo#160037 Forward-Port-Of: odoo/odoo#159455
This update improves the automated testing system by providing more detailed information when errors are detected during tests. Instead of just reporting that an error occurred, the system now logs the actual error message and related technical details, making it easier for developers to diagnose and fix issues.
Original PR description
Before this commit, when the clickbot detected an error dialog, it stopped the test and throw an error saying that an error dialog was detected. This information is not enough to check why, and how, the error dialog was produced. Now, we also log the content of the error dialog as well as all the information of the last rpc that was in error. closes odoo/odoo#160103 X-original-commit: 4f26b324a30c5120ea60b6b42fef6cd6000d2859
This update adds the ability to set a maximum number of files that can be uploaded in many-to-many binary fields. This improvement addresses cases where users may have incorrectly used a many-to-many relationship when a simpler structure would be more appropriate, providing better control over file uploads in the WhatsApp integration and other features.
Original PR description
[IMP] web: allow to give a maximum of file to upload in m2m binary People may have used a m2m where we don't really want a m2m relationship. Task-3605612 (WhatsApp: Fix header / upload / reporting usage) Forward-Port-Of: odoo/odoo#159973 Forward-Port-Of: odoo/odoo#157576
This update aligns how portal controllers handle parameters with the backend system controllers. Specifically, the portal_chatter_post and attachment_add functions are being updated to match backend behavior. This is a preparatory change to eventually replace the portal chat feature with the backend chat feature, reducing code duplication and maintenance effort.
Original PR description
This change is a preparation to sync parameters in portal controllers with the backend ones (`portal_chatter_post`, `attachment_add`) in order to reduce the diff in replacing portal chatter with backend chatter. Related to task-2828744