diff options
| author | nounoubensebia <neb@odoo.com> | 2021-04-22 15:01:26 +0000 |
|---|---|---|
| committer | nounoubensebia <neb@odoo.com> | 2021-05-05 13:01:08 +0000 |
| commit | 1688265fe2f79385e7171b257489ae103288beee (patch) | |
| tree | 41ebd9db1b9394933888a6f48c7d98591068a676 /addons/mail/controllers | |
| parent | ac3e0fcd32d66d6e0bacfabd2d224805d92dbfd1 (diff) | |
[FIX] mail: display default name for followers for "other address" partner
Display the default name (the one displayed in the kanban view) for followers replacing
the False value for "other address" partners, this way the user won't get
confused, furthermore, this fix won't require the name to be mandatory for this
type of contacts.
Task-2514244
closes odoo/odoo#70391
X-original-commit: 4c1271738daa039e79a11646fef3f4264e4d96d2
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mail/controllers')
| -rw-r--r-- | addons/mail/controllers/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/controllers/main.py b/addons/mail/controllers/main.py index bf3f268f68b..4ecd87d3d71 100644 --- a/addons/mail/controllers/main.py +++ b/addons/mail/controllers/main.py @@ -143,6 +143,7 @@ class MailController(http.Controller): 'partner_id': follower.partner_id.id, 'channel_id': follower.channel_id.id, 'name': follower.name, + 'display_name': follower.display_name, 'email': follower.email, 'is_active': follower.is_active, # When editing the followers, the "pencil" icon that leads to the edition of subtypes |
