Add oca-dms submodule with 10 DMS modules

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ernad Husremovic 2025-08-30 17:46:17 +02:00
parent c674eb0508
commit ae2c6775ba
569 changed files with 63341 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# Copyright 2021 Tecnativa - Jairo Llopis
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from odoo import models
class MailThread(models.AbstractModel):
_inherit = "mail.thread"
def _message_post_process_attachments(
self, attachments, attachment_ids, message_data
):
"""Indicate to DMS that we're attaching a message to a record."""
_self = self.with_context(attaching_to_record=True)
return super(MailThread, _self)._message_post_process_attachments(
attachments, attachment_ids, message_data
)