As per requirement we are added CC field (partner_ids_cc) on wizard which is get by clicking send by email button on sale Quotation and on send button i want to send email to both my recipient and CC recipient.
I am trying to send email from python code below:
mail_values = {
'subject': self.subject,
'body': self.body or '',
'parent_id': self.parent_id and self.parent_id.id,
'partner_ids': [partner.id for partner in self.partner_ids],
'email_cc' : self.partner_ids_cc,
'attachment_ids': [attach.id for attach in self.attachment_ids],
'author_id': self.author_id.id,
'email_from': self.email_from,
'record_name': self.record_name,
'no_auto_thread': self.no_auto_thread,
'mail_server_id': self.mail_server_id.id,
}
Traceback:
2017-09-11 09:29:57,373 5220 WARNING BB1 odoo.models: mail.message.create() includes unknown fields: email_cc
I am getting this warning and email cc functionality is not working. Can someone suggest should i use different keyword for email cc?? or Is there any other way to add cc service for mail??