from odoo import models class AccountMove(models.Model): _name = "account.move" _inherit = ["account.move", "ir.attachment.action_download"]