From d389d7f8f71a46ce1e1c366cb73cfa19d0ea4564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=C3=ADaz?= Date: Thu, 28 Nov 2019 22:58:09 +0100 Subject: [PATCH] [FIX] mail_tracking: Changed injection method for 'failed_message_ids' field Before this commit, some methods with views crashes trying to process 'failed_message_ids' field. After this commit the 'failed_message_ids' field description is properly generated. --- mail_tracking/models/mail_thread.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mail_tracking/models/mail_thread.py b/mail_tracking/models/mail_thread.py index 4a385b47b..4022781ed 100644 --- a/mail_tracking/models/mail_thread.py +++ b/mail_tracking/models/mail_thread.py @@ -69,14 +69,14 @@ class MailThread(models.AbstractModel): return res @api.model - def fields_view_get(self, view_id=None, view_type='form', toolbar=False, - submenu=False): + def _fields_view_get(self, view_id=None, view_type='form', toolbar=False, + submenu=False): """Add filters for failed messages. These filters will show up on any form or search views of any model inheriting from ``mail.thread``. """ - res = super().fields_view_get( + res = super()._fields_view_get( view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu) if view_type not in {'search', 'form'}: