19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:28 +01:00
parent ff721d030e
commit 7721452493
1826 changed files with 124775 additions and 274114 deletions

View file

@ -0,0 +1,12 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class AccountMove(models.Model):
_inherit = 'account.move'
def _message_set_main_attachment_id(self, attachments, force=False, filter_xml=True):
if self.message_main_attachment_id.mimetype == "application/pkcs7-mime":
force = True
super()._message_set_main_attachment_id(attachments, force, filter_xml)