Wednesday, January 17, 2024
14 changes · 17.0
Enhancements to existing features
The eCommerce category scrollbar is now easier to use by increasing its grab area when shoppers hover over it. This small usability improvement helps customers navigate product categories more comfortably with a mouse.
Original PR description
Issue: The eCommerce categories scrollbar is too small/ not easy to grab with your mouse. Fix: The scrollbar height is increased on hover to increase the grabbing area task-3371760 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update refines how grid images with links are handled in the website editor. The changes remove unnecessary CSS overrides and simplify the code logic by using more reliable detection methods. These improvements make the code cleaner and easier to maintain without affecting how the feature works for users.
Original PR description
Commit [1] added the support for images with a link set on them in grid mode. As a follow up, this commit does the following: - Removes the `!important` from the grid image anchor CSS rules, as they were not really needed. - Checks if the image has a closest `o_grid_item_image` column instead of checking the parent in the `GridImage` options. Indeed, this class already guarantees that the image is well a grid image; we can therefore simplify the code. It also removes a comment that was forgotten in commit [2]. [1]: https://github.com/odoo/odoo/commit/085d70cea571ea80c141ac6005e8bd8333bd269f [2]: https://github.com/odoo/odoo/commit/d8c374e3e6b31bf88aa42952aadf3379936f7600 related to opw-3580128 Forward-Port-Of: odoo/odoo#148152
Resolved issues and error corrections
This fixes automatic link creation in the web editor when a typed URL is followed by punctuation such as periods. Users can now type text like "somelink.com..." and have only the URL converted into a clickable link, restoring expected editing behavior.
Original PR description
Typing a valid http URL + SPACE transforms the URL into a link (anchor element). [1] broke such URL transformation if the URL is followed by punctuation characters, e.g. "somelink.com...". After this commit, typing "somelink.com..." + SPACE transforms "somelink.com" into a link, restoring the behavior prior to [1]. task-3602890 [1]: https://github.com/odoo/odoo/commit/4da0608f7c7cd7a6550ec40535b9562fb35c5417
Miscellaneous changes
Previous fix c0a9e2b was too broad, the issue was only when qty > 1, but the css rules also applied for the simple case where quantity = 1 (that case was displayed fine before that commit). **steps to reproduce:** - set current user language to arabic - open the point of sale - sell a product on the point of sale with a qty = 1 - print receipt **before this commit:** | qty = 1 : ❌ | qty = 2 : ✅ | | :---: | :---: | | . **steps…
Previous fix c0a9e2b was too broad, the issue was only when qty > 1, but the css rules also applied for the simple case where quantity = 1 (that case was displayed fine before that commit). **steps to reproduce:** - set current user language to arabic - open the point of sale - sell a product on the point of sale with a qty = 1 - print receipt **before this commit:** | qty = 1 : ❌ | qty = 2 : ✅ | | :---: | :---: | |  |  **after this commit:** | qty = 1 : ✅ | qty = 2 : ✅ | | :---: | :---: | |  |  opw-3643485 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#149675 Forward-Port-Of: odoo/odoo#149136
This fix adds spacing between the reset and continue buttons on completed course quizzes. It makes the quiz page easier to read and prevents learners from accidentally clicking the wrong action.
Original PR description
**How to reproduce** 1. Go to website slides. 2. Open any course which has quiz content. 3. Solve the quiz or open an already solved quiz. -> Here we can see that the reset and continue buttons are overlapped. **After this PR** Now there will be a space between the reset and continue buttons. Task-3635485
Course quiz feedback now displays with proper spacing between the information icon and the answer explanation. This makes fullscreen quiz results easier to read and avoids a cramped visual presentation for learners.
Original PR description
How to reproduce it: - Install website_slides - Go in the course "Basics of Gardening" - Do the test "Test you knowledge" in full screen mode - The information displayed about your answer is glued to the information icon This fix the problem by adding space between the icon and the text using a bootstrap class. Technical note: Although the html has not changed, the problem was not present in previous version because the rendering process was not removing all spaces which is now the case. So this doesn't solve the root cause but only that particular case. Task-3607117
This fixes an issue in Spanish Point of Sale where printing an early restaurant bill could fail if no customer had been selected. The receipt now avoids showing customer details when none are available, allowing staff to print bills normally.
Original PR description
### Steps to reproduce: - Create a new company located in **Spain**. - Install **Restaurant** app. - Go to **Settings** > **Invoicing** and select **Spain - SMEs (2008)** in **Fiscal Localization** - Go to **Settings** > **Point of Sale** and enable **Early Receipt Printing** under **Restaurant Mode** - Open **Point of Sale** app, and open a Bar session - Add a product - Click on **Bill** button, an error arises ### Investigation - When u click on **Bill**, no customer (partner) is selected yet and hence partner is `null` at the order https://github.com/odoo/odoo/blob/d0704a19de31e0251d343081ae6b3da9991a248e/addons/l10n_es_pos/static/src/overrides/models/pos_store.js#L12 - and so no properties of partner can be accessed in https://github.com/odoo/odoo/blob/d0704a19de31e0251d343081ae6b3da9991a248e/addons/l10n_es_pos/static/src/overrides/components/receipt_header/receipt_header.xml#L20-L22 opw-3652235
Argentine Spanish users now see the correct translated menu items and accounting template names. This improves usability for companies using Argentina localization by replacing missing or incorrect fallback translations.
Original PR description
[FIX] l10n_ar: add missing translations Issue: spanish_ar translation is missing for some menu items and template names in the accounting app Steps to reproduce: 1- install l10n_ar 2- switch language to Spanish(AR) 3- Open accounting app 4- check menu items Solution: Issue was that the translation file was called es.po and for spanish (AR) language it should fallback to es_419 As per the translation code found here in in 'translate.py' in odoo tools https://github.com/odoo/odoo/blob/20a3998c3073af8a5d95f8303283107363caed85/odoo/tools/translate.py#L1565-L1574 opw-3601556
This update fixes two visual issues in the rental product shop page: removes an unwanted border around the date picker in the sidebar that was causing layout problems, and corrects the validation styling so that invalid rental inputs now properly display with a red border as intended.
Original PR description
### 1. Remove unwanted border Prior to this PR, there was a border on the date picker in the sidebar of the shop page, which created a layout issue. To fix that, this commit removes this border. ### 2. Adapt invalid inputs Prior to this commit, renting inputs were supposed to have a red border when invalid. The related function targeted the wrong name and no longer worked. This commit adapts this function and the style applied to maintain consistency. Requires: - https://github.com/odoo/enterprise/pull/54378 task-3586525
This update adds two new commodity codes for banana imports that replace an outdated code as of January 1, 2024. The change ensures accurate classification of banana products in international trade reporting, with separate codes for Canary Island bananas and other banana varieties. This keeps the system compliant with updated trade nomenclature standards.
Original PR description
From the 1st of January 2024, commodity code [0803 90 10] is replaced by these 2 new codes: - [0803 90 11] Plátano de Canarias - [0803 90 19] Others Source: https://www.nbb.be/en/statistics/foreign-trade/nomenclature-and-codes  opw-3676899 Forward-Port-Of: odoo/enterprise#54359 Forward-Port-Of: odoo/enterprise#54102
This update fixes a visual issue where review dialog boxes on course pages were displaying duplicate borders. When users click to add or edit a review on a course, the dialog box will now display cleanly without the redundant border styling that was previously visible.
Original PR description
Before this PR =================== 1). Go to website slides. 2). Open any Course. 3). Click on 'Add a review' or 'Edit your review'. -> We can see that textarea and div both have a border. After this PR ================= When we are in the pop-up view div border will be not shown. Task-3623765
Steps to reproduce: 1- install stock_account and account_accountant 2- activate in Settings > Accounting > Automatic Accounting 3- open a Product Category > set Inventory Valuation = Automated [`real_time`] (optional step: can change the account stock properties values, but doesn't matter) 4- install mrp_account Expected result: - Accounts already set under the Account Stock Properties (i.e.: property_stock_valuation_account_id, property_stock_account_input_categ_id, etc) remain
Original PR description
Steps to reproduce: 1- install stock_account and account_accountant 2- activate in Settings > Accounting > Automatic Accounting 3- open a Product Category > set Inventory Valuation = Automated…
Steps to reproduce: 1- install stock_account and account_accountant 2- activate in Settings > Accounting > Automatic Accounting 3- open a Product Category > set Inventory Valuation = Automated [`real_time`] (optional step: can change the account stock properties values, but doesn't matter) 4- install mrp_account Expected result: - Accounts already set under the Account Stock Properties (i.e.: property_stock_valuation_account_id, property_stock_account_input_categ_id, etc) remain unchanged. Actual result: - Account stock properties for any Product Categories already set to Automated before installing mrp_account are wiped to nothing Issue: `_post_load_data` was resetting all property values (i.e. the accounts) to False since PR odoo/odoo#119564 to ensure correct accounts were used for `manual_periodic` valuation when stock_account and mrp_account are first installed. This was previously not an issue because no valuations could be set to `real_time` before stock_account was installed and mrp_account did not run `post_load_data` (i.e. an mrp account was added) until saas-16.3. So now we avoid wiping existing assigned accounts when mrp_account calls `_post_load_data` at its install time Task: 3471065 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 Forward-Port-Of: odoo/odoo#132649
Fine tuning of #143380 It only works for stock.move but it should also be the case for stock.move.line 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 Forward-Port-Of: odoo/odoo#146579 Forward-Port-Of: odoo/odoo#144783
Original PR description
Fine tuning of #143380 It only works for stock.move but it should also be the case for stock.move.line 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 Forward-Port-Of: odoo/odoo#146579 Forward-Port-Of: odoo/odoo#144783
The "change icon on change partner im_status" test sometimes fails. This test is using `afterNextRender` that is not robust and does not provide a lot of information for debugging purpose. This PR adapts this test to use the `contains` helper instead. This might not fix the test but will at least provide insight on what is wrong. fixes runbot-53101 X-original-commit: https://github.com/odoo/odoo/commit/9f5e43d6f952c26386b732c1cb0bb8468daefc03 Forward-Port-Of: odoo/odoo#147463 Forward-
Original PR description
The "change icon on change partner im_status" test sometimes fails. This test is using `afterNextRender` that is not robust and does not provide a lot of information for debugging purpose. This PR adapts this test to use the `contains` helper instead. This might not fix the test but will at least provide insight on what is wrong. fixes runbot-53101 X-original-commit: https://github.com/odoo/odoo/commit/9f5e43d6f952c26386b732c1cb0bb8468daefc03 Forward-Port-Of: odoo/odoo#147463 Forward-Port-Of: odoo/odoo#147449