Wednesday, March 16, 2022
10 changes · master
Enhancements to existing features
This update improves how communication-related features clean up after starting, reducing the risk of leftover background activity during tests and interactions. It affects several business apps that rely on messaging, documents, approvals, VoIP, invoicing, Studio, and live chat, helping make behavior more reliable across the platform.
Original PR description
community: https://github.com/odoo/odoo/pull/86523 task-2792108
This update improves how startup routines clean up after themselves across several Odoo Enterprise apps. It mainly strengthens automated tests and internal reliability, helping reduce leftover test state and prevent inconsistent behavior during development and quality checks.
Original PR description
*: account_invoice_extract, approvals, documents, documents_spreadsheet_bundle, mail_enterprise, voip, web_studio, website_helpdesk_livechat. task-2792108 community : https://github.com/odoo/odoo/pull/86526
Resolved issues and error corrections
This update adjusts internal test expectations for project scheduling so automated checks remain reliable. It helps prevent false test failures during development without changing user-facing project features.
Original PR description
This commit increases the QueryCounts of the other tests in order to prevent the same issue than in c76dff127bcf178984af371abd7b9f8d5df147e5.
Code cleanup and technical improvements
The timesheet and planning analysis report was reorganized internally so future changes can be made more easily. This reduces duplication for related modules and should make ongoing maintenance of reporting behavior simpler, without changing the report experience for users.
Original PR description
The purpose of the task is to technically refactor the timesheet and planning analysis report. So in this commit, split the query into methods so it will be easily overridden by the other modules, and no need to re-write the whole query again. task-2791087
Miscellaneous changes
Before the fix: In case of only one posted depreciation entry, if the asset is modified, a second entry at this date will be created. After the fix: We don't create another entry at the start depreciation date if the date of the last posted entry is the same. Forward-Port-Of: odoo/enterprise#25299
Original PR description
Before the fix: In case of only one posted depreciation entry, if the asset is modified, a second entry at this date will be created. After the fix: We don't create another entry at the start depreciation date if the date of the last posted entry is the same. Forward-Port-Of: odoo/enterprise#25299
PURPOSE: Allow user to create appointment type from website also if he don't have default timezone. Specification: Current: User is not able to create appointment type from website if he don't have default tz. To be: Allow him to create appointment type also if he don't have default tz. TaskId-2745881 Forward-Port-Of: odoo/enterprise#24899 Forward-Port-Of: odoo/enterprise#23968
Original PR description
PURPOSE: Allow user to create appointment type from website also if he don't have default timezone. Specification: Current: User is not able to create appointment type from website if he don't have default tz. To be: Allow him to create appointment type also if he don't have default tz. TaskId-2745881 Forward-Port-Of: odoo/enterprise#24899 Forward-Port-Of: odoo/enterprise#23968
When sending a mail for an appointment the time displayed depends on the user timezone. Indeed no timezone was specifically used for the datetime. This was leading to different time in the mail sent based on the timezone of the browser of the user that was sending it. To avoid confusion, we will now displayed the timezone of the appointment type in the mail and adapt the datetime with this timezone. We also put the appointment timezone in the context when the event is created. task
Original PR description
When sending a mail for an appointment the time displayed depends on the user timezone. Indeed no timezone was specifically used for the datetime. This was leading to different time in the mail sent based on the timezone of the browser of the user that was sending it. To avoid confusion, we will now displayed the timezone of the appointment type in the mail and adapt the datetime with this timezone. We also put the appointment timezone in the context when the event is created. task-2699765 COM PR: odoo#83163 Forward-Port-Of: odoo/enterprise#25115 Forward-Port-Of: odoo/enterprise#22599
The commit makes this template more similar to the other "pay now" emails. In particular, it * removes the company logo which is already included in the container layout * Switches from table to a div-based layout Task-2751139 See odoo/odoo#83977 Forward-Port-Of: odoo/enterprise#25154
Original PR description
The commit makes this template more similar to the other "pay now" emails. In particular, it * removes the company logo which is already included in the container layout * Switches from table to a div-based layout Task-2751139 See odoo/odoo#83977 Forward-Port-Of: odoo/enterprise#25154
Step to reproduce : - Create a pricelist with 'Show Public Price and Discount to customer' and a 20% discount. - Create a subscription with the pricelist for a product of price 100. Current behaviour : - 'Unit Price' is 80 and 0% discount on the subscription.order.line Behaviour after PR: - 'Unit Price' is 100 and 20% discount on the subscription.order.line opw-2724580 Forward-Port-Of: odoo/enterprise#24094 Forward-Port-Of: odoo/enterprise#23625
Original PR description
Step to reproduce : - Create a pricelist with 'Show Public Price and Discount to customer' and a 20% discount. - Create a subscription with the pricelist for a product of price 100. Current behaviour : - 'Unit Price' is 80 and 0% discount on the subscription.order.line Behaviour after PR: - 'Unit Price' is 100 and 20% discount on the subscription.order.line opw-2724580 Forward-Port-Of: odoo/enterprise#24094 Forward-Port-Of: odoo/enterprise#23625
Manual fixed FW of https://github.com/odoo/enterprise/pull/25022 X-original-commit: 0d432ae4c22fdb1f4dae6f5b35f8701cd1667a2b -- I confirm I have signed the CLA and read the PR guidelines at [www.odoo.com/submit-pr](http://www.odoo.com/submit-pr) Forward-Port-Of: odoo/enterprise#25028
Original PR description
Manual fixed FW of https://github.com/odoo/enterprise/pull/25022 X-original-commit: 0d432ae4c22fdb1f4dae6f5b35f8701cd1667a2b -- I confirm I have signed the CLA and read the PR guidelines at [www.odoo.com/submit-pr](http://www.odoo.com/submit-pr) Forward-Port-Of: odoo/enterprise#25028