mirror of https://github.com/OCA/social.git
[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.pull/483/head
parent
a8fe50b773
commit
923debe5d9
|
@ -5,7 +5,7 @@
|
|||
{
|
||||
"name": "Email tracking",
|
||||
"summary": "Email tracking system for all mails sent",
|
||||
"version": "11.0.3.2.0",
|
||||
"version": "11.0.3.2.1",
|
||||
"category": "Social Network",
|
||||
"website": "http://github.com/OCA/social",
|
||||
"author": "Tecnativa, "
|
||||
|
|
|
@ -73,14 +73,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'}:
|
||||
|
|
Loading…
Reference in New Issue