Odoo18-Base/addons/account_edi_ubl_cii/models/mail_template.py

15 lines
394 B
Python
Raw Permalink Normal View History

2025-03-10 11:12:23 +07:00
# -*- 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)