Friday, August 9, 2024
14 changes · master
Resolved issues and error corrections
This fixes several user-facing text labels so they can be translated correctly. It helps users working in different languages see consistent localized wording in editor, website, and AI translation dialogs.
Original PR description
add .translate to untranslated props. This commit fixes the props that pass strings to use `.translate` introduced in: https://github.com/odoo/odoo/pull/174697 Enterprise: https://github.com/odoo/enterprise/pull/68048
Changing a product's type no longer triggers an error on the product form. This helps users update product settings without interruption and avoids a confusing crash during routine product maintenance.
Original PR description
Steps to reproduce: -go to any product's form view -change the product type Issue: traceback occured when trying to change product type. Cause: not returning anything in _onchange_type method. Fix: return empty dictionary in _onchange_type method. opw-4096074 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update makes automated checks for the HTML editor more reliable when testing emoji insertion and pasted images. It reduces the chance of false test failures, helping keep development and release validation smoother without changing user-facing behavior.
Original PR description
The goal of this commit is to fix the indeterminacy in the tests linked to the use of the "Emoji" powerbox command and the paste of a base64 image. For the Emoji, waitFor can sometimes take longer. So we're going to increase its limit. To paste an image in base64, we'll use waitFor to wait for the image to be added to the dom. 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 fixes an issue where some mail-related links could trigger an error if optional menu or view information was missing. The link now only includes those details when they are available, improving reliability for users opening mail links.
Original PR description
Before this commit, a traceback would occur if menu_id or view_id was not present, because the URL contained view_id=False or menu_id=False. After this commit, menu_id or view_id will be added to the URL only if they exist. Related to: Task-3820230 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update corrects a layout issue in the Accounting product form where certain fields were not aligned properly. The change improves readability and consistency when users view or edit product information, without changing business logic.
Original PR description
version: master Issue : In the product form view, fields are not properly aligned. cause : The misalignment issue is caused by the use of a `t` tag to conditionally hide the product fields when the type is 'combo'. Fix : Removed the `t` tag and directly applied the `invisible="type == 'combo'"` attribute to the `label` and `div` tags to ensure proper layout and visibility control. opw-4102709
Long product category names on the online shop now stay on one line instead of wrapping. This keeps category cards consistent and prevents images from being squeezed, improving the browsing experience.
Original PR description
Part of website_sale product / shop redesign (task-3986921). Previously if the category name was too long the text was wrapping, increasing the height of the container and shrinking the image. This commit applies a text-nowrap and a flex-shrink to avoid this behavior. | Before | After | | -- | -- | |  |  | task-3987172 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The wishlist badge in the online shop now matches the intended badge styling after a recent design update. This prevents an inconsistent or awkward visual display, improving polish for shoppers using wishlist features.
Original PR description
- Requires : https://github.com/odoo/enterprise/pull/68203 This PR aims to fix a design issue on the wishlist badge inside `website_sale`. Commit[1] recently introduced a redesign of the front-end badges and took care to provide an adaptation (make use of the old badge design) when needed, in some specific contexts. The add to cart badge was actually adapted, but the wishlist one did not get any adaptation, resulting in a weird visual result. This commit fixes the issue by applying the right value to the badge CSS variables. We also remove the `rounded-pill` class as all badges now use `$border-radius-pill` by default. Commit [1]: https://github.com/odoo/odoo/commit/b4a5bf03cd81ece2a7fd21a3c5a058ee2d3336fe task-4106164 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update fixes barcode scanning support after a shared technical dependency was removed from the backend. It helps keep barcode-related workflows working reliably without changing how users interact with the feature.
Original PR description
Since https://github.com/odoo/odoo/pull/174213, jQuery is no longer available in "web.assets_backend". Here we adapt some code in barcodeService that was still using jQuery.
The celebration message shown during guided tours is now visible even when its surrounding area has no size. This helps users consistently see success feedback after completing tour steps.
Original PR description
In this commit, we fix the rainbowMan css so that it is visible through a container that is 0x0. To do this, we need to change the position to fixed instead of absolute.
Fixes an issue in Point of Sale where selecting a cashier protected by a PIN could cause an error and interrupt checkout operations. The cashier selection flow now handles PIN-protected employees correctly, with test coverage updated for this scenario.
Original PR description
Steps to reproduce: 1. Assign a pin to one employee. 2. Start a session with enabled employee login. 3. Login with any employee except the one with pin. 4. Click the cashier avatar at the top right to open the cashier selection. 5. ISSUE: Traceback when selecting the employee with pin. This is because the click handler on the cashier avatar is not properly assigned. Before this commit, the handler takes the event as the first argument which is assigned to the `pin` args which is invalid. The test is adapted to take into account the listed steps above.
This fix ensures restaurant orders reopen correctly after using the booking flow. It prevents staff from seeing a blank screen when returning to a selected table, keeping point-of-sale operations smooth.
Original PR description
Screens are saved on order so that when an order is reselected, the order is rendered on its last recorded screen. In this commit, we exclude the ActionScreen since it doesn't make sense (for now) for it to be a screen for the current order. Steps to reproduce: 1. Install pos_restaurant_appointment. 2. Open a session for the Restaurant config. 3. Open an order by clicking a table. 4. Click Booking button from the navbar. 5. Click the table selector and select the table you selected in step 2. 6. ISSUE: The screen is blank. Community PR: https://github.com/odoo/odoo/pull/176278
An automated website sale test was adjusted to match the updated badge styling used on wishlist elements. This helps keep quality checks reliable after recent visual design changes, without changing the customer-facing shopping experience.
Original PR description
- Requires : https://github.com/odoo/odoo/pull/176254 This commit aims to adapt the test to find the right DOM element. As the front-end badges recently got their design reviewed, we need to set some badges to `bg-*` (aka old badge design) instead of `text-bg-*` depending on the context. As we need to apply that `bg-primary` on the wishlist badge, the test has to be adapted. task-4106164
This fix makes the online bank synchronization connector check proxy mode values exactly as expected, using lowercase-only matching. It helps prevent incorrectly formatted proxy mode values from being accepted, reducing the chance of synchronization setup issues.
Original PR description
The `i` modifier is not needed in the regular expression, we need to check if proxy_mode matches the regex in a case-sensitive way. Task ID: 4067083
This fix ensures more text shown in Odoo Studio's button configuration can be translated correctly. It helps users working in different languages see consistent, localized labels instead of untranslated English text.
Original PR description
add .translate to untranslated props. This commit fixes the props that pass strings to use `.translate` introduced in: https://github.com/odoo/odoo/pull/174697 Community: https://github.com/odoo/odoo/pull/175909