Conversation
…ail senders Without this fix automatic responses couldn't be sent to emails/tickets being created from senders without partner record.
720f343 to
02531f2
Compare
| ) | ||
| return res | ||
|
|
||
| def _helpdesk_link_and_subscribe_partner(self): |
There was a problem hiding this comment.
I don't understand the need for this method or why it's called at the end of message_new() when that method itself calls _mail_find_partner_from_emails() to retrieve the partners and subscribe them.
There was a problem hiding this comment.
Here only To and CC fields are parsed which doesn't catch From when the partner doesn't exist yet. I created a separate method to use it also from website_helpdesk_mgmt which otherwise faces the same issue.
There was a problem hiding this comment.
Perhaps we need to define something like this for the partner_email field: https://github.com/odoo/odoo/blob/434b4e95a6ceca92de21e137911c0b72d7ef7a07/addons/crm/models/crm_lead.py# L100 so that everything works automatically without having to add any extra methods.
There was a problem hiding this comment.
I don't see how that would solve the issue if no partner record exists. Please elaborate.
Without this fix automatic responses couldn't be sent to emails/tickets being created from senders without partner record.