1# -*- coding: utf-8 -*-
2# Part of Odoo. See LICENSE file for full copyright and licensing details.
3from odoo import api, models, _
4
5
6class MergePartnerAutomatic(models.TransientModel):
7
8    _inherit = 'base.partner.merge.automatic.wizard'
9
10    def _log_merge_operation(self, src_partners, dst_partner):
11        super(MergePartnerAutomatic, self)._log_merge_operation(src_partners, dst_partner)
12        dst_partner.message_post(body='%s %s' % (_("Merged with the following partners:"), ", ".join('%s <%s> (ID %s)' % (p.name, p.email or 'n/a', p.id) for p in src_partners)))
13