Daily updates from Odoo
Sunday, March 17, 2024
1 change
Resolved issues and error corrections
This fix resolves a crash in the mail system that occurred when custom models inherited from mail.thread but defined a user_id field as a text field instead of a relationship field. The system now properly checks the field type before processing, preventing errors in the message recipient suggestion feature.
Original PR description
-Step to reproduce: any custom model that inherit from mail.thread then define a field user_id but with type is char and boom error happen at method '_message_get_suggested_recipients' because it always expect 'user_id' to be a many2one field -Solution: need to check the type of 'user_id' also Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#157350 Forward-Port-Of: odoo/odoo#155149