Files
2026-02-22 01:22:18 -05:00

19 lines
733 B
Python

# Fusion Accounting - Accounting Report Download Action
# Technical abstract model exposing the 'data' field for report downloads
from odoo import models
class FusionReportDownloadAction(models.AbstractModel):
"""Abstract model that extends the readable field set of
``ir.actions.actions`` to include 'data', enabling the
accounting report download mechanism."""
_name = 'ir_actions_account_report_download'
_description = 'Technical model for accounting report downloads'
def _get_readable_fields(self):
"""Merge the standard readable fields with the 'data' key
required by the report export controller."""
return self.env['ir.actions.actions']._get_readable_fields() | {'data'}