Hello,
when an email is sent via the Chatter widget under an
opportunity (CRM) & there is no existing partner to whom this email
address/opportunity is linked Odoo forces the user to create a new
contact. If the user refuses & clicks on "discard" no email is sent.
I would like to change this behaviour in such a way that the user has the option to skip the creation of a new contact & send the email anyway.
(I know that there is a way of sending an email without being forced to create a contact: When in tree view of crm.lead & selecting at least one opportunity there is an option for 'CRM Mass Mailing' in the action menu. But this option is hard to find and not very user-friendly.)
This pop-up is managed by the mail addon's
chatter_composer.js (& chatter.js). As far as I understand it one
has to overwrite/extend the class
'mail.ChatterComposer'
However,
the info I found so far about how it can be done is sparse & either
unclear or in contradiction with other info. Odoo's own Javascript API
not going into detail at all doesn't help much... Help much appreciated.