[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.
This commit is contained in:
parent
72fb0002f6
commit
db068ba018
@ -70,7 +70,7 @@ class MailThread(models.AbstractModel):
|
||||
return res
|
||||
|
||||
@api.model
|
||||
def fields_view_get(
|
||||
def _fields_view_get(
|
||||
self, view_id=None, view_type="form", toolbar=False, submenu=False
|
||||
):
|
||||
"""Add filters for failed messages.
|
||||
@ -78,7 +78,7 @@ class MailThread(models.AbstractModel):
|
||||
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"}:
|
||||
|
Loading…
Reference in New Issue
Block a user