Skip to Content
Menu
This question has been flagged
3 Replies
2284 Views

 I have this problem where when I do a fresh install of a support module ticket, the previous chatter logs from previous system keep on appearing. how do I remove it?

Avatar
Discard
Author Best Answer

AttributeError: module 'odoo.addons.website_supportzayd' has no attribute '_unlink_messages_data'

it returns this error

Avatar
Discard
Best Answer

Hello Hibri,
May be below module will helpful for you.
You have to define the below code in __manifest__.py file

'post_init_hook': '_unlink_messages_data',


and also define below code in __init__.py file

from odoo import api, SUPERUSER_ID

def _unlink_messages_data(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
messages = env["mail.message"].search([]).unlink()

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard
Best Answer

Hello 

Delete it from mail.message

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
282
2
Nov 24
1833
0
Nov 24
77
2
Oct 24
329
2
Sep 24
325