TIP: You can type at any time to perform a new search.
Email History
mail_history · OCA/social
Security findings
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `WITH sub as ( SELECT mail_message_id, res_partner_id FROM mail_message_res_partner_needaction_rel ) INSERT INTO mail_message_res_partner_needaction_rel (mail_message_id, res_partner_id, is_read) SELECT mm.id, mmrpr.res_partner_id, True FROM mail_message mm JOIN mail_message_res_partner_rel mmrpr ON mmrpr.mail_message_id = mm.id WHERE mmrpr.res_partner_id NOT IN ( SELECT res_partner_id FROM sub ) AND mm.id NOT IN ( SELECT mail_message_id FROM sub )` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/social · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Social Network
- Folder size
- 0.04 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/social
- Last tracking update
- 2026-08-07 07:31:58
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- Carlos Roca, Weblate, OCA Transbot, OCA-git-bot, oca-travis, Tom Blauwendraat
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Code Analysis
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
mail_history assets | ir.ui.view | qweb | Inherits web.assets_backend |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (0)
No new fields.
Public methods (3)-
mark_all_as_read(self, channel_ids=None, domain=None)@api.modelOverride this method for injecting a context key for avoiding the removal of mail.notification. We need to inject as well a true leaf in the domain for avoiding a part of code in super that removes the records by sql. -
message_format(self)@api.multiOverride this method to add the notification fetching for the read messages. -
set_message_done(self)@api.multiOverride this method for injecting a context key for avoiding the removal of mail.notification.
New fields (0)
No new fields.
Public methods (1)-
unlink(self)