ir_attachment.py 544 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. from odoo import models, api
  3. class IrAttachment(models.Model):
  4. _inherit = 'ir.attachment'
  5. # -------------------------------------------------------------------------
  6. # XSD validation
  7. # -------------------------------------------------------------------------
  8. @api.model
  9. def action_download_xsd_files(self):
  10. # To be extended by localisations, where they can download their necessary XSD files
  11. # Note: they should always return super().action_download_xsd_files()
  12. return