diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-05-28 13:51:01 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-06-09 12:19:07 +0200 |
| commit | c56c5cf1e2b5c3de0a12d0ef0031efdee19fad11 (patch) | |
| tree | 124465ddc14d71d9c9fcaa9746a085690efbeddc /addons/mail/wizard/mail_compose_message.py | |
| parent | 72b48a4111b54418ad8007402059ac0b835dfd50 (diff) | |
[CLEAN] mail: removed duplicated code
Diffstat (limited to 'addons/mail/wizard/mail_compose_message.py')
| -rw-r--r-- | addons/mail/wizard/mail_compose_message.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 2a8957fa35f..2c7c5b7894d 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -94,9 +94,6 @@ class MailComposer(models.TransientModel): result['model'] = 'res.partner' result['res_id'] = self.env.user.partner_id.id - if fields is not None: - [result.pop(field, None) for field in result.keys() if field not in fields] - # Override to pre-fill the data when having a template in single-email mode # and not going through the view: the on_change is not called in that case. if result.get('composition_mode') != 'mass_mail' and self._context.get('default_template_id') and result.get('model') and result.get('res_id'): |
