PURPOSE Purpose of this task is to cleanup attachment management done in generic mail models overrides and move it in account as model overrides. SPECIFICATIONS Account_edi and various l10n submodules hold some custom code to generate and handle EDI attachments. It is used to add attachments linked using AccountMove specific 'edi_document_ids' field when sending emails based on templates. Currently MailTemplate is overridden in accounting modules to hold code related to AccountMove and AccountEdiDocument attachments manipulation. This is linked to EDI and report naming, not mail specific. This should therefore not be implemented at template level, but in those specific models. For that purpose we introduce a method in MailThread that allow to handle attachments when being in a template context. An override in account_edi allows to implement its specific behavior. By the way an old docstring in l10n_it_edi that was quite unrelated to the override is also removed, as it was more confusing than helping. Task-2792146 (Mail: Move model-dependent code from composer / template) Task-2710804 (Mail: Clean MailThread API) Part-of: odoo/odoo#106658
11 lines
260 B
Python
11 lines
260 B
Python
# -*- encoding: utf-8 -*-
|
|
|
|
from . import account_move
|
|
from . import account_journal
|
|
from . import account_edi_format
|
|
from . import account_edi_document
|
|
from . import account_payment
|
|
from . import ir_actions_report
|
|
from . import ir_attachment
|
|
from . import uom
|