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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
AttributeError: module 'odoo.addons.website_supportzayd' has no attribute '_unlink_messages_data'
it returns this error
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
Hello
Delete it from mail.message
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
Chatter looks weird in 18.0
Solved
|
|
2
Dec 24
|
282 | |
|
2
Nov 24
|
1833 | ||
|
0
Nov 24
|
77 | ||
|
2
Oct 24
|
329 | ||
|
2
Sep 24
|
325 |