Monday, May 19, 2025
12 changes · master
Enhancements to existing features
Helpdesk tests were updated to match recent changes in how empty grouped kanban views are handled. This helps ensure the Helpdesk interface remains reliable when ticket groups have no records.
Original PR description
This commit adapts a test to changes made in https://github.com/odoo/odoo/pull/208851 task-4762308
Resolved issues and error corrections
This fix ensures project planning correctly identifies overlapping tasks when filters include related information. It helps prevent scheduling conflicts from being missed and improves the reliability of planning calculations and related tests.
Original PR description
The query that determines overlapping tasks is making two different Query objects: the first one for the main task and the second one for overlapping tasks. The second query is joined into the first…
The query that determines overlapping tasks is making two different Query objects: the first one for the main task and the second one for overlapping tasks. The second query is joined into the first one, injecting the second one's where clause as join condition, but that composition does not work if the second query has extra joins. Those extra joins come from related fields that may occur from the domain. The fix consists in recomposing the query with a join condition that does not depend on a dynamic domain, and injecting the domain in the where clause of the main query. With this strategy, the joins that appear because of the related fields in the domain are part of the main query, and are no longer lost by the composition. Note also that the test test_same_user_overlap_with_allocated_hours_less_than_workable_hours was actually broken, because the field allocated_hours wasn't flushed when doing the SQL query. The new query flushes the field, and the test has been fixed. odoo/odoo#207404
Miscellaneous changes
task-4592571 changed up the way activities function, but not everything was completed before the end of the freeze; in addition, it included a number of bugs/crashes/usage inconveniences. This commit adds: - Sign "Request signature" activity type renamed to "Signature" This commit also fixes: - Postfreeze checkout comment on test_mail_enterprise query count change deleted; as action_feedback behavior changes, it can be expected that query count would change. task-4747156 Forward-Port
Original PR description
task-4592571 changed up the way activities function, but not everything was completed before the end of the freeze; in addition, it included a number of bugs/crashes/usage inconveniences. This commit adds: - Sign "Request signature" activity type renamed to "Signature" This commit also fixes: - Postfreeze checkout comment on test_mail_enterprise query count change deleted; as action_feedback behavior changes, it can be expected that query count would change. task-4747156 Forward-Port-Of: odoo/enterprise#85598
Manufacturing orders no longer automatically mark components or byproducts as picked just because the production quantity is changed. This keeps inventory consumption and byproduct production aligned with explicit user actions or final production completion, reducing unintended stock updates.
Original PR description
When the quantity being produced in a MO is updated, the consumption of components and the production of byproducts were automatically picked. However, this behavior should only occur when the user manually picks it or when the production is completed. This commit fixes the issue and updates some tests to reflect the intended behavior. task: 4314900
Before this commit, the #84245 adds an extra_domain to find the customer to assign on the ticket based on the email address received. The problem is the partners could also have no company set and so the method could not find the existing partner with the email given and will create a duplicate partner because of that. This commit adds inside the extra_domain to also search on partner without any company set to be sure to not create duplicate the partner. Forward-Port-Of: odoo/enterprise#856
Original PR description
Before this commit, the #84245 adds an extra_domain to find the customer to assign on the ticket based on the email address received. The problem is the partners could also have no company set and so the method could not find the existing partner with the email given and will create a duplicate partner because of that. This commit adds inside the extra_domain to also search on partner without any company set to be sure to not create duplicate the partner. Forward-Port-Of: odoo/enterprise#85605 Forward-Port-Of: odoo/enterprise#85173
In case of a multi-company enabled database, it was possible to assign a journal to an online account of a different company, which didn't make much sense. Forward-Port-Of: odoo/enterprise#85627 Forward-Port-Of: odoo/enterprise#82080
Original PR description
In case of a multi-company enabled database, it was possible to assign a journal to an online account of a different company, which didn't make much sense. Forward-Port-Of: odoo/enterprise#85627 Forward-Port-Of: odoo/enterprise#82080
The iot download logs button widget js code didn't have an onClick method which resulted in an error when you press it: ``` UncaughtClientError > OwlError Uncaught Javascript Error > Invalid handler (expected a function, received: 'undefined') Occured on 80350261-saas-18-3-all.runbot177.odoo.com on 2025-05-15 12:30:59 GMT OwlError: Invalid handler (expected a function, received: 'undefined') Error: Invalid handler (expected a function, received: 'undefined') at Object.ma
Original PR description
The iot download logs button widget js code didn't have an onClick method which resulted in an error when you press it:
```
UncaughtClientError > OwlError
Uncaught Javascript Error > Invalid handler (expected a function, received: 'undefined')
Occured on 80350261-saas-18-3-all.runbot177.odoo.com on 2025-05-15 12:30:59 GMT
OwlError: Invalid handler (expected a function, received: 'undefined')
Error: Invalid handler (expected a function, received: 'undefined')
at Object.mainEventHandler (https://80350261-saas-18-3-all.runbot177.odoo.com/web/assets/debug/web.assets_web.js:14945:23)
at HTMLButtonElement.listener (https://80350261-saas-18-3-all.runbot177.odoo.com/web/assets/debug/web.assets_web.js:9281:20)
```
This PR fixes this issue by properly definining an "onClick" method
task-4797770
Forward-Port-Of: odoo/enterprise#85603This fixes two issues with the report. The first one is automatically requesting an English report if the customer's preferred language is not Spanish. This way the lang field on the partner is somewhat respected for these externally generated reports too. The second fix requests a dedicated addenda page when appropriate. By default, the addenda (e.g. terms and conditions) is added in a small box at the bottom of the standard PDF report. This can only accomodate roughly 6 lines of 140 charact
Original PR description
This fixes two issues with the report. The first one is automatically requesting an English report if the customer's preferred language is not Spanish. This way the lang field on the partner is somewhat respected for these externally generated reports too. The second fix requests a dedicated addenda page when appropriate. By default, the addenda (e.g. terms and conditions) is added in a small box at the bottom of the standard PDF report. This can only accomodate roughly 6 lines of 140 characters. If the addenda exceeds that, the remainder is silently cut off which is problematic for mandatory disclosures etc. It's possible to request a dedicated addenda page in the PDF that fixes this issue. We considered always requesting it, but it looks strange to have a whole page in the PDF if the addenda is very short. We therefore make a best effort attempt to figure out if the addenda will fit in the standard report or not. task-4750717 Forward-Port-Of: odoo/enterprise#81188
The deadline for the Intrastat for Belgium was missing, we were using company.account_return_reminder_day instead. Here we change it to be 20 days which is the deadline for Belgium to submit their Intrastat report. task-4627315 Forward-Port-Of: odoo/enterprise#85475
Original PR description
The deadline for the Intrastat for Belgium was missing, we were using company.account_return_reminder_day instead. Here we change it to be 20 days which is the deadline for Belgium to submit their Intrastat report. task-4627315 Forward-Port-Of: odoo/enterprise#85475
This commit will add the possibility to quickly apply a full amount when you have a partial amount. Also removing part of the edit line function that is not needed anymore since we added the amount currency in the view, the record_data parameter has now always the amount_currency in it. And doing some formatting because the alignment was wrong in the form view. task-4749342 Forward-Port-Of: odoo/enterprise#84668
Original PR description
This commit will add the possibility to quickly apply a full amount when you have a partial amount. Also removing part of the edit line function that is not needed anymore since we added the amount currency in the view, the record_data parameter has now always the amount_currency in it. And doing some formatting because the alignment was wrong in the form view. task-4749342 Forward-Port-Of: odoo/enterprise#84668
We don't want the user to differentiate the places where to apply the regex search (reco model) on statement lines. We thus apply it on the label, the transaction details and the narration altogether, returning on the first match. task-4749338 Forward-Port-Of: odoo/enterprise#84284
Original PR description
We don't want the user to differentiate the places where to apply the regex search (reco model) on statement lines. We thus apply it on the label, the transaction details and the narration altogether, returning on the first match. task-4749338 Forward-Port-Of: odoo/enterprise#84284
Forward-Port-Of: odoo/enterprise#85695
Original PR description
Forward-Port-Of: odoo/enterprise#85695