Odoo18-Base/addons/account/models/ir_attachment.py

16 lines
544 B
Python
Raw Permalink Normal View History

2025-03-10 11:12:23 +07:00
# -*- coding: utf-8 -*-
from odoo import models, api
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
# -------------------------------------------------------------------------
# XSD validation
# -------------------------------------------------------------------------
@api.model
def action_download_xsd_files(self):
# To be extended by localisations, where they can download their necessary XSD files
# Note: they should always return super().action_download_xsd_files()
return