Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see the emails address from marketing campaigns in Odoo?

I have sent some emailing campaigns form Marketing, at "Mass Mailings" at details I have "Emails" button. When I click on it I have columns "Mail ID (tech)", "Message-ID", "Sent" and others. But I do cannot see the email to which I have sent.

How can I see the email, which I think is the most important information, because I cannot see which client has opened the email?

like image 813
radu c Avatar asked Sep 24 '15 10:09

radu c


People also ask

What is Odoo email marketing?

Email marketing is the act of sending advertisements or any type of commercial message across a group of people, either the potential or current customer using email. Email Marketing revolves around enhancing the merchant's relationship, encouraging customer loyalty and repeat business in the most advanced format.

Is Odoo email marketing free?

Odoo Email Marketing offers freemium subscriptions with paid plans starting from $12.00/month. This means Odoo Email Marketing is offering a free-forever plan that isn't time limited, as well as paid subscriptions. Below is an overview of the main pricing plans Odoo Email Marketing offers.


1 Answers

@Ek Kosmos, You need to add some code to do so. Please apply following code to your repository.

addons/mass_mailing/models/mass_mailing_stats.py

 def _compute_recipient(self, cr, uid, ids, field_names, arg, context=None):
        res = dict.fromkeys(ids, '')
        for stat in self.browse(cr, uid, ids, context=context):
            if not self.pool.get(stat.model):
                continue
            target = self.pool[stat.model].browse(cr, uid, stat.res_id, context=context)
            email = ''
            for email_field in ('email', 'email_from'):
                if email_field in target and target[email_field]:
                    email = ' <%s>' % target[email_field]
                    break
            res[stat.id] = '%s%s' % (target.display_name, email)
        return res

in same file add into columns = {}

'recipient': fields.function(_compute_recipient, string='Recipient', type='char'),

then add into view

addons/mass_mailing/views/mass_mailing.xml

<field name="recipient"/>
like image 199
Bazzinga... Avatar answered Sep 20 '22 21:09

Bazzinga...