Tuesday, March 11, 2025
9 changes · 17.0
Resolved issues and error corrections
Users can now link an employee to a related internal user even when the employee has a bank account marked for sending money. This prevents an unnecessary access rights error and keeps employee-user setup flowing for staff without bank management permissions.
Original PR description
Steps to reproduce: - Let's consider an employee E with a bank account BA - Let's consider that BA has the option "Send Money" enabled - Let's log to an internal user U without any access right in Bank - Try to link E to any internal user Bug: A user error was raised: You do not have the rights to trust or untrust accounts. opw:4553238
Fixes an issue where choosing an activity type with a default user could leave that person assigned even after switching to another activity type. This helps ensure activities are assigned to the correct person and reduces manual correction for users.
Original PR description
Steps to reproduce: - Open settings and search for "Activity Types" - Choose an activity Type and set a default user (different than the current user) - Open Project and select a task in one project - Click on activities - Select the activity type with the default user - Select another activity type Problem: Once the activity type with a default user has been selected, the "assigned to" field does not change (it keeps the value of the default user) even after changing the activity type. https://github.com/odoo/odoo/blob/8b0dddf8b4fb68fc12f15a71e150cf1607d5cd24/addons/mail/wizard/mail_activity_schedule.py#L182 opw-4459016
Fixed an issue where opening the Comparison filter on Consolidated Balance reports could trigger an error. Users can now add comparison filters while keeping consolidation-specific reporting options intact.
Original PR description
### Steps to reproduce: - Go to Accounting > Configuration > Accounting Reports > Consolidated Balance > Options - Tick "Period Comparison" - On a consolidation period, click "Consolidated Balance" - Click on the button "Comparison" to add a filter ### Cause: The dropdown component that is supposed to appear when clicking the button is reading value that are undefined: `controller.options.date.mode` This value is only defined if the filter is 'custom': https://github.com/odoo/enterprise/blob/297bc86d8a98beb4cabc646c3a2ec6a594e7ca0c/account_reports/models/account_report.py#L639 ### Solution: We don't want to have the date filter on consolidation balances but we want to keep the consolidation filter. So we check if `controller.options.date` exist before reading `mode`. opw-4546574
Miscellaneous changes
## Versions: 16.0+ ## Issue: When changing the website language from the cart page, the product description is not translated while all other elements of the page are. ## Steps to reproduce: Install at least 2 languages available on website; From the shop, add a product (e.g. "Customizable Desk") to cart; Move to the cart and change language. ## Cause: Description is retrieved without being recomputed with selected language. opw-4485686 Forward-Port-Of: odoo/odoo#198073
Original PR description
## Versions: 16.0+ ## Issue: When changing the website language from the cart page, the product description is not translated while all other elements of the page are. ## Steps to reproduce: Install at least 2 languages available on website; From the shop, add a product (e.g. "Customizable Desk") to cart; Move to the cart and change language. ## Cause: Description is retrieved without being recomputed with selected language. opw-4485686 Forward-Port-Of: odoo/odoo#198073
Forward-Port-Of: odoo/odoo#199458
Original PR description
Forward-Port-Of: odoo/odoo#199458
### Steps to reproduce the issue: (Easier to reproduce with demo data) 1. Create a Fixed Tax and assign it to a Product 2. Open POS session, add Product to Order 3. Add a Coupon Code: "10pc" - This code should give a 10% Discount on the Order 4. The Discount Line includes the Fixed Tax amount and accounts for more than 10% of the Order Total ### Explanation: During the creation of the reward line, the fixed taxes are not excluded from discounts. While it is logical for percen
Original PR description
### Steps to reproduce the issue:
(Easier to reproduce with demo data)
1. Create a Fixed Tax and assign it to a Product
2. Open POS session, add Product to Order
3. Add a Coupon Code: "10pc"
- This code should give a 10% Discount on the Order
4. The Discount Line includes the Fixed Tax amount and accounts for more than 10% of the Order Total
### Explanation:
During the creation of the reward line, the fixed taxes are not excluded from discounts. While it is logical for percentage taxes to be included, as they become part of the discount, fixed taxes are added to the amount.
### Fix reasoning:
The opposite issue was fixed in commit odoo/odoo@534de1e47ab882bfb1cc006bdf1fa00fc877c6c4, adapting the code to javascript.
opw-4506550
Forward-Port-Of: odoo/odoo#200175Since [1] when can publish rights were adapted, the overload for pages did only handle the website designer users, but did not call super for other users. This commit calls super if the user is not a website designer. [1]: https://github.com/odoo/odoo/commit/1a83b2508b9383e2b7df192f8641751f71f852da task-3175890 Forward-Port-Of: odoo/odoo#200737
Original PR description
Since [1] when can publish rights were adapted, the overload for pages did only handle the website designer users, but did not call super for other users. This commit calls super if the user is not a website designer. [1]: https://github.com/odoo/odoo/commit/1a83b2508b9383e2b7df192f8641751f71f852da task-3175890 Forward-Port-Of: odoo/odoo#200737
During the rendering of email marketing templates, links will be automatically shortened to aliases, which also enable tracking on the links' activity. However, since some links are generated by Odoo, these are protected (blacklisted) from being shortened during the email generation process. Since that blacklist is keyword-based, some external pages are also affected by this (notably Google Docs' forms, whose URL contains "/viewform", matching keyword /view. Steps to reproduce: - Creat
Original PR description
During the rendering of email marketing templates, links will be automatically shortened to aliases, which also enable tracking on the links' activity. However, since some links are generated by Odoo, these are protected (blacklisted) from being shortened during the email generation process. Since that blacklist is keyword-based, some external pages are also affected by this (notably Google Docs' forms, whose URL contains "/viewform", matching keyword /view. Steps to reproduce: - Create a new mass mailing - Add a link to a Google Docs form, and a link to a Wikipedia page - Send the mass mailing - On the received email: The link to Wikipedia is shortened, the Google Docs form link is not To reduce the number of false positives, this commit makes it so that blacklist elements need to be followed by a path symbol ( / # ? or link termination) to be counted as positives. task-4196321 Forward-Port-Of: odoo/odoo#190819
- disable duplicate for interviewer_ids Task: 4606811 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#199546
Original PR description
- disable duplicate for interviewer_ids Task: 4606811 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#199546