Daily updates from Odoo
Monday, July 22, 2024
4 changes · saas-17.2
Resolved issues and error corrections
This fix adds the missing CRM lead model definition needed by related enterprise test cases. It helps ensure CRM-related automated tests run reliably and supports smoother validation of enterprise CRM functionality.
Original PR description
Purpose of this PR: Test cases of the `crm_enterprise` require definition of `crm.lead` model. Defining the model to match the dependency Part of task:[3818666](https://www.odoo.com/odoo/project/1519/tasks/3818666?cids=2) Related Enterprise PR: https://github.com/odoo/enterprise/pull/62256
Users can now leave Discuss channels without seeing an error. The system removes the leaving user from the channel before sending the departure notification, preventing the message from being sent back to them.
Original PR description
**Current behavior before PR:** when leaving discuss channel from discuss it results in error because leave notification is send to the leaving person itself. **Desired behavior after PR is merged:** The issue was resolved by replacing the logic. Now, before sending a notification to the channel, we remove the channel member and the channel itself from the thread of the person leaving. task-3893498 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The French accounting localization module name was changed from l10n_fr to l10n_fr_account without fixing the module references in the translation files. This commit fixes the module references in the i18n files. The French tax report was not showing the French translation. task-3986901 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Original PR description
The French accounting localization module name was changed from l10n_fr to l10n_fr_account without fixing the module references in the translation files. This commit fixes the module references in the i18n files. The French tax report was not showing the French translation. task-3986901 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an unreliable automated test around messaging subscription updates. It helps keep quality checks stable by correctly handling cases where subscriptions are removed, reducing false test failures during development.
Original PR description
Before this PR, the "bus subscription updated when joining locally pinned thread" test was sometimes failing. Internally, it uses the waitForChannels helper, which was rewritten in [1] to handle subscription updates before the helper is called. However, the helper only works for channel addition, not deletion. The helper only works in this case due to a race condition. This PR fixes the helper to properly handle deletion. runbot-65320 [1]: https://github.com/odoo/odoo/pull/168438