As mail grows and will continue to grow, ordering views and having right files is important to understand module organization and content. Split main.py controller file into two files, one for mail related controllers (redirections) and one for discuss. Rename files according to guidelines for wizards and views. No functional change comes with this commit. This is only code move. Task-2631873 PR odoo/odoo#75571
13 lines
573 B
Python
13 lines
573 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from odoo import api, models, _
|
|
|
|
|
|
class MergePartnerAutomatic(models.TransientModel):
|
|
|
|
_inherit = 'base.partner.merge.automatic.wizard'
|
|
|
|
def _log_merge_operation(self, src_partners, dst_partner):
|
|
super(MergePartnerAutomatic, self)._log_merge_operation(src_partners, dst_partner)
|
|
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)))
|