Odoo18-Base/addons/account_edi_ubl_cii/models/mail_template.py
2025-03-10 11:12:23 +07:00

15 lines
394 B
Python

# -*- coding: utf-8 -*-
from odoo import models
class MailTemplate(models.Model):
_inherit = "mail.template"
def _get_edi_attachments(self, document):
# EXTENDS account_edi
# Avoid having factur-x.xml in the 'send & print' wizard
if document.edi_format_id.code == 'facturx_1_0_05':
return {}
return super()._get_edi_attachments(document)