Daily updates from Odoo
Thursday, August 7, 2025
3 changes · master
Resolved issues and error corrections
Fixes a reconciliation issue where currency conversions with many decimal places could create small artificial differences, such as one cent. The system now keeps the original foreign currency amount when the recalculated value is close enough, helping invoices reconcile correctly and reducing manual follow-up.
Original PR description
The aim of this commit is to keep the original foreign amount currency if the computation ends up close enough to it. Before this commit: The reconciliation process was losing so much precision that…
The aim of this commit is to keep the original foreign amount currency if the computation ends up close enough to it. Before this commit: The reconciliation process was losing so much precision that it could mess up the reconciliation of one single invoice. After this commit: We keep the original amount as it is most probably the correct one. Context: With a rate of 1 US$ = 5.421327349 R$ and an invoice of 143.62 R$, we convert the amount in US$ which is 26.491668921649627 US$. As we have to round it for the accounting, we end up with 26.49 US$ as company currency amount, losing the rest of the decimals. During the reconciliation process, we convert back the US$ to R$ ending up with 143.61096147501 R$ that have to be rounded to 143.61 R$. This creates a difference of 0.01 R$ which surfaces later on. Chosen solution: As we still have the original currency amount and the rate, we are able to recompute the raw numbers and we are able to make "fairer" comparison between the amounts. If we can confidently tell that the amounts are close enough, we can just keep the original amount and prevent all those rounding errors to be taken into account. opw-4937508 Forward-Port-Of: odoo/enterprise#91650 Forward-Port-Of: odoo/enterprise#91462
This update fixes issues that could prevent AI live chat conversations from being found correctly, especially for website visitors. It also keeps the AI live chat status accurate when a conversation is transferred to a human operator, reducing broken or confusing chat experiences.
Original PR description
This commit solves the following bugs: - Update the logic of retrieving ai chat channel to include livechat channels. - Given that retrieving ai chat channel relies of `is_member` being True, the value of the `mail.guest` record corresponding to the current user (in case of public users) should be added to the context. - The value of `livechat_with_ai_agent` wasn't synced when the livechat channel was forwarded to a human operator. This caused bugs in the ai livechat snippet.
Applying a commission or partnership grade to a company contact will no longer automatically apply it to related child contacts. This restores the intended behavior and helps avoid incorrect commission or subscription partnership settings being assigned across linked contacts.
Original PR description
This reverts commit 14001a8a0216750be0c897d0e1bf31fccfc51c6a so that applying a grade no longer adds it to the children of the partner as well. TASK-4985900 Forward-Port-Of: odoo/enterprise#91618 Forward-Port-Of: odoo/enterprise#91456