Odoo18-Base/addons/l10n_it/models/account_move.py

13 lines
442 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class AccountMove(models.Model):
_inherit = 'account.move'
2025-03-04 12:23:19 +07:00
def _message_set_main_attachment_id(self, attachments, force=False, filter_xml=True):
2025-01-06 10:57:38 +07:00
if self.message_main_attachment_id.mimetype == "application/pkcs7-mime":
force = True
super()._message_set_main_attachment_id(attachments, force, filter_xml)